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

Prevent jittering scroll-animations & endless animation frames #165

Merged

Conversation

decline
Copy link

@decline decline commented Jan 12, 2018

This pull-request checks if the data.scrollTop value is not-a-number. If so, there must not be any animation, because this would cause a scroll to the top which makes the animation jitter.

Furthermore it cancels the requested animation frames after the current tween stops. This prevents endless running animation frames.

…not be any animation, because this would cause a scroll to the top which makes the animation jitter.
@decline decline changed the title Prevent jittering scroll-animations by checking if scrollTop value is NaN Prevent jittering scroll-animations & endless animation frames Jan 12, 2018
@rintoj rintoj merged commit f008687 into rintoj:master Jan 25, 2018
@rintoj
Copy link
Owner

rintoj commented Jan 25, 2018

Thanks for your contribution. Changes are merged and published (v0.3.2)

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.

2 participants