|
|
|
|
|
by dougk16
2595 days ago
|
|
Thanks for the tips. I opted for that .content_scroller because when the whole body was scrollable the side menu was really jumpy and glitchy on the Android phones I tested on. It also was doing weird things with the address bar, hiding and showing it in a seemingly random way. I think you mean `position: fixed` rather than `display: fix` right? In which case the side bar class .side_bar_column already has that. Unless you mean a different class/element? Anyway looks like I'll have to attack this scroll issue a little more systematically. People usually complain about scrolljacking. I'm doing the absolute opposite, trying to let browsers do their thing themselves, but apparently that's bad too lol. Can't win. |
|
In any case, there are a lot of reasons for scrolling the main document rather than having a subscroller, including:
1. Auto-hiding the address bar when scrolling down on mobile (it's not weird—all browsers do it) and pull-to-refresh in browsers that have it
2. Better accessibility because it doesn't break the PageUp/PageDown keys
3. Momentum scrolling
4. Better scrolling performance (higher framerate) because browsers optimise main document scrolling over subscrolling
5. Support for #fragment linking
6. etc.[0]
[0] https://nolanlawson.com/2018/11/18/scrolling-the-main-docume...