-
Notifications
You must be signed in to change notification settings - Fork 1k
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
When user tries to scroll mid-animation, flickering occurs as scrollTo fights the scrollbar #53
Comments
It's indeed not complicated to implement, but my goal with scrollTo is remain as a wrapper to $.fn.animate(). That jQuery method lets you interrupt the animation but won't do it automatically. $(window).scroll(function() {
$(window)._scrollable().stop(true, false);
}); |
That snippet just renders scrollTo useless... have you actually tried it? The window.scroll event catches all scrolling, not just user-initiated. Even if you're not willing to fix this, it's currently not possible to implement something like my function above with scrollTo, because it doesn't offer a |
What I'm saying is, it's not something you MUST include inside the plugin (which I consider a good thing). I'll think about this a bit, will probably land the change soon. |
Great, thanks. |
This bug must be fixed, related to #8. |
Note that it's not a bug. It's the way it is intended to work. The same will happen with any jquery animation where the user gets to alter the same style the animation is modifying. |
Hi, I will try the approach mentioned on #67. |
This is implemented. To cancel on user scroll pass |
There are two possible solutions - either 1) ignore user scrolling until the animation is complete, or 2) cancel the animation so the user regains control. I'm not sure how easy 1) would be to implement, but 2) is very simple, as the following function demonstrates:
The text was updated successfully, but these errors were encountered: