-
Notifications
You must be signed in to change notification settings - Fork 44
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
"onComplete" never gets called when user interrupts scroll animation #26
Comments
Hey @mciastek, You are correct, it doesn't get called in that scenario. I thought about it for a while, and I think better solution would be to add a new property Honestly I never run into scenario where I needed that. What do you think? EDIT: It could be added here: |
Hi @Stanko! Thanks for responding to my issue! Honestly, I'm not sure if I need to know if scroll animation has been interrupted by user or not. I would prefer having only one callback which tells me that animation ended. Simple as that. If such information is required I would add an argument to |
It probably makes sense to have one callback, and pass a boolean argument to it |
Great! I'm happy to help with PR if needed. |
Published in v1.3.0 🎉 |
When you set
cancelOnUserAction
totrue
and after scroll animation is interrupted by user's action, theonComplete
never gets called. It would be nice to know if animated completed even if it was interrupted in the middle. I would like to help with PR, so just let me know if that's a good idea.animated-scroll-to/animated-scroll-to.js
Lines 140 to 143 in 636752b
The text was updated successfully, but these errors were encountered: