-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoScroll doesn't work well on sites with scroll-behavior: smooth #33
Comments
I was able to get around this issue with the help of this comment : https://superuser.com/a/1366186/1022880 |
For a solution using the forcible overwrite, see commit 2ee51a2 of the fork from ubermanu. You could manually change your AutoScroll.js file in your extension folder accordingly. (Just search for the file AutoScroll.js on your system.) |
does anyone know of a better alternative to this nowadays that's still actively maintained? |
I'm using this fork as an alternative. |
Issue
I noticed that on some sites, using AutoScroll doesn't really work so well. It appears that the problem is the
scroll-behavior
CSS attribute. The default browser setting is:Some sites override it to:
Which leads to issues when using AutoScroll. Here's a side by side comparison on my personal site.
scroll-behavior: auto
(click to show):Regular scroll behavior. Responsive. Stops scrolling immediately upon clicking out of auto-scroll.
scroll-behavior: smooth
(click to show):Broken scroll behavior. Window scrolls very slowly, doesn't reverse direction correctly. Clicking out of auto-scroll causes browser to rapidly scroll in the direction that scroll was attempted.
Possible Fix
It seems like one potential fix would be to explicitly set
scroll-behavior: auto
on thehtml
element of the document when auto-scroll is enabled. This would override the site'sscroll-behavior
setting.The text was updated successfully, but these errors were encountered: