|
|
|
|
|
by frosted-flakes
2598 days ago
|
|
Yeah, I meant `position: fixed` (brainfart—I knew it didn't sound quite right). But it shouldn't have any issues at all on Android. It's how most websites do sticky headers, and I've never seen any glitching. 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... |
|
All your points have really convinced me to give document scrolling another go though. Thanks for the list and the link.