Closed zippw closed 1 year ago
It is working on my side. Any online demos?
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 scrollbar.setMomentum(-scrollbar.offset.x, -scrollbar.offset.y)
to scroll to top.
This 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 NaN
and thus break the scrollbar.
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 easing.easeOutQuint(0.5)
and see if it returns a number.
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: https://github.com/danro/easing-js/issues/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