Skip to content
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

Cancel smoothScroll when calling moveTo methods #269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdixon4
Copy link

@mdixon4 mdixon4 commented Jan 6, 2022

If the element is auto-scrolling due to the kinetic effect (smooth scrolling), any calls to moveTo and smoothMoveTo methods are immediately overwritten by the next frame called by autoScroll.

This PR cancels any existing smoothScroll effect within the internalMoveBy method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant