-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Slow scrolling in Chrome #138
Comments
Hmmm i see what you mean, strange considering the demo site is working fine on chrome 83. Is there any other code on the site that is trying to edit the scroll position? How have you implemented the library? (can't really see the code, since its all compiled) |
Via Webpack(er), but I've tried everything else as well... commenting out all other JS code (one piece was watching the Unless you have any other idea (maybe the structure of the page or some specific CSS?) I'm sorry to say I give up... :( |
Hey @manuelmeurer, it looks like a normal behaviour if you have in your CSS I am not sure why it is working in Firefox, it looks like a bug. |
@erichstark Ah yeah, that's it! 😄 |
That is actually good idea. It could work. Why do you need smooth scroll? If it is for SPA navigation via #some-id, it could be done by some JavaScript code. And with JavaScript it would work also in Safari. |
I like to use CSS instead of JS wherever possible. 😄 |
It works! 🎉
Of course they should check if a |
Thanks for solving this riddle, @erichstark! @tholman, do you think it's worth it mentioning this gotcha in the README? |
Wow! What a journey & amazing catch, haha, wouldn't have got that at all. Definitely worth a readme gotcha at the very least 🙏 |
Am also guessing that adding the |
I tried to get it to work with the Line 91 in a8332ec
window.scrollTo({ top: easedPosition, behavior: 'auto' }); but it doesn't seem to work for me...
|
@manuelmeurer btw I think style attr is readonly. Better approach should be setting directly the property like
|
|
it was not scrolling properly. found solution here, but seems they never updated the repo. tholman/elevator.js#138
Firstly, thanks for this great project! :)
I implemented it on my website (https://uplink.tech/) but noticed the scrolling is a bit weird in Chrome (v83 on macOS): first it scrolls very slowly, and then very quickly.
In Firefox and Safari it works fine.
What can I do to debug this further?
The text was updated successfully, but these errors were encountered: