Scroll Anchoring in Firefox 66
hacks.mozilla.org
Scroll Anchoring in Firefox 66
1–10 of 13 posts
Re: Scroll Anchoring in Firefox 66
#2Re: Scroll Anchoring in Firefox 66
#3Re: Scroll Anchoring in Firefox 66
#4Good work nonetheless.
Re: Scroll Anchoring in Firefox 66
#5I think I'd rather prefer not having the opt-out option. Although ultimately I feel like if you're malicious enough, you can fool the algorithm to produce the behaviour that you're looking for. Good work nonetheless.
Re: Scroll Anchoring in Firefox 66
#6All great, but won't sites with ads simply opt out, effectively defeating the point of this feature?
It's not that sites are intentionally scrolling ads into view. In the rare cases where they do that, scroll anchoring won't make any difference anyway. Usually what happens is that the content just changes position randomly, whether or not the ad is even within the viewport.
Re: Scroll Anchoring in Firefox 66
#7Re: Scroll Anchoring in Firefox 66
#8Re: Scroll Anchoring in Firefox 66
#9All great, but won't sites with ads simply opt out, effectively defeating the point of this feature?
There isn't really an incentive to opt out. The constant referencing of ads is a bit misleading. It's just that ads happen to very often be the slowest loading content on the page, which causes lots of annoying reflows. Really it's any image, video, or any kind of embedded element whose size is not known during the initial page render. Ads just happen to be a serial offender for this, because they are typically serve…
Now people largely ignore them, use publishing tools that don't bother, and dynamically build pages with garbage scripts instead of having a sane document already marked up.
Re: Scroll Anchoring in Firefox 66
#10The symptom is that it treats the scrollbar position as a ratio of page length, and as the page length changes, the viewport is suddenly warped to a new position at the same ratio of the new page size. To fix this, I think it should continue to use the old page length to calculate scroll position until you release the drag. You won't always be able to scroll past the previous end of page in one movement, but the content visible in the viewport should remain coherently related to your drag motions.
I recognize that something has to be made inconsistent in the ratio-based scrollbar UX if the page length changes. I think having the scrollbar handle jump away from the mouse cursor on drag-release would be much less annoying than having the viewport jump around on each DOM edit. You can continue reading what you were reading and only be distracted when you need to go find the handle again to scroll further down, much like if you accidentally let your mouse drift out of the scrollbar and then released the drag.