-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
scrollbar.scrollTo easing not working #516
Comments
Unfortunately, I won't be able to show this separately, but what conditions should there be for proper operation? Maybe css overflow... The scrollbar works great. Could there be a problem with gsap ScrollTrigger? (there is a plugin). If I use the easing parameter, the scrollbar will intercede on the spot and nothing can be done with it |
We are not able to figure out the issue unless we see a demo. However, if you don’t need the callback, you can try |
Sky.Tools.-.Home.-.Google.Chrome.2023-02-02.21-49-27.mp4 |
Sky.Tools.-.Home.-.Google.Chrome.2023-02-02.21-52-50.mp4This works when I'm not using easing |
One guess is that something is wrong with the easing-js you are using—it seems to return a |
how can i see some debug stuff? I mean, there are no errors at all, easing.easeOutQuint returns function |
In your console (or in the code), type |
It returns NaN |
Alright, so I guess you are using the wrong easing-js. Our scrollbar supports this one: https://github.com/danro/easing-js |
The one you got from npm is totally a different package: danro/easing-js#5 |
Wow! Thank you very much! I would never have guessed just by downloading another library by the same name heh |
Checks
Version
8.8.1
Description
Summary
Hello!
When I click on button, scrollbar should scroll to the top
When I use easing-js, scrollbar stops working so I can't scroll at all (scrollTo also not work)
If I remove easing, it works properly.
Expected Behavior
After clicking on a button, scrollbar supposed to scroll on top with easing
I love your project and I hope you answer me
Steps to Reproduce
?
Online Demo
No response
The text was updated successfully, but these errors were encountered: