Skip to content

Cancel smoothScroll when calling moveTo methods#269

Open
mdixon4 wants to merge 1 commit intoanvaka:mainfrom
mdixon4:master
Open

Cancel smoothScroll when calling moveTo methods#269
mdixon4 wants to merge 1 commit intoanvaka:mainfrom
mdixon4:master

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