-
Notifications
You must be signed in to change notification settings - Fork 24
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
Method to cancel scroll animation #24
Comments
Don´t know for sure if i understand your problem but you can conditionally scroll, handling click event your self and scroll using |
You mean simulate click onClick event? ...
You suggest to use simulateClick for this click event which activated on button click? |
@TotallWAR I would do otherwise,
|
Yes, you are right, this approach much better! Thank you for help =) |
@TotallWAR You can disable scroll animation passing "a 0 returning easing function", for Ex:
I hope I've help you |
I have case that page should be scrolled conditionally.
I try
clickEvent.preventDefault(); clickEvent.stopPropagation();
but it's animated in any case.
The text was updated successfully, but these errors were encountered: