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

Fix animation regression from 5331 #6108

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Mar 2, 2019

Fixes: #6104

Pen showing 6104 fixed
No regression in timing

Its fixed by making sure we are advancing whether the start time was reset or not.

@benmccann
Copy link
Contributor

Thanks for the quick fix @kurkle! I don't know the animation code well enough to review, so will let the others review this one

etimberg
etimberg previously approved these changes Mar 2, 2019
@simonbrunel simonbrunel added this to the Version 2.8 milestone Mar 3, 2019
@simonbrunel
Copy link
Member

Its fixed by making sure we are advancing whether the start time was reset or not.

I though an animation could only be cancelled, where do we reset the start time for an existing animation?

@kurkle kurkle changed the title Fix jerky animations Fix animation regression from 5331 Mar 3, 2019
@kurkle
Copy link
Member Author

kurkle commented Mar 3, 2019

Went through the issue with @simonbrunel and found out its really just because if we start at 0, nothing changes before the next animation starts at 0. When starting from 1, some transition happens every time.

@simonbrunel simonbrunel merged commit 344628b into chartjs:master Mar 4, 2019
@simonbrunel
Copy link
Member

Thanks @kurkle for this prompt fix

@kurkle kurkle deleted the jerky-animations branch May 5, 2019 06:39
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart does not properly update with animation in master
5 participants