question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"onComplete" never gets called when user interrupts scroll animation

See original GitHub issue

When you set cancelOnUserAction to true and after scroll animation is interrupted by user’s action, the onComplete 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.

https://github.com/Stanko/animated-scroll-to/blob/636752b47f7cf5434966986acc77f15462a69ae7/animated-scroll-to.js#L140-L143

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Stankocommented, Sep 2, 2019

Published in v1.3.0 🎉 onComplete now receives a boolean argument isCanceledByUserAction

https://github.com/Stanko/animated-scroll-to/pull/27

0reactions
mciastekcommented, Sep 2, 2019

Great! I’m happy to help with PR if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect when a user interrupted UIScrollView animation
I am using Objective C. When the user drags and releases, the code detects which is the closest subview and automatically scrolls to...
Read more >
Docs | Plugins | ScrollTrigger - GreenSock
ScrollTrigger creates jaw-dropping scroll-based animations with ... should be called when snapping gets interrupted (like if the user starts ...
Read more >
Animation Techniques for Adding and Removing Items From a ...
Animating elements with CSS can either be quite easy or quite difficult depending on what you are trying to do.
Read more >
The activity lifecycle | Android Developers
As a user navigates through, out of, and back to your app, the Activity instances in your app transition through different states in...
Read more >
The Psychology of Your Scrolling Addiction
And what does it take to pull yourself out and get back to the work you want to be doing? In this piece,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found