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

animated updates do not clear previous animations #94

Closed
mainstreetmark opened this issue Dec 20, 2016 · 1 comment
Closed

animated updates do not clear previous animations #94

mainstreetmark opened this issue Dec 20, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@mainstreetmark
Copy link

if I perform an animated gauge update, and then later perform a faster animated update, the faster one completes, and then the needle finishes animating to the older value. For example:

 gauge.value = 10
 gauge.update({animationDuration:10000});
 // wait 5 seconds
 gauge.value = 5
 gauge.update({animationDuration:2000})

After 10 seconds, the needle points to 10, when it should point to 5, with several conflicting needle states in between.

I suspect the previous animation should be cleared with each update, if it doesn't happen to be completed.

(the case i'm having is one of my values is polled, but every so often an event happens that requires a quick new reading, but the slower process animations are still running)

@Mikhus Mikhus self-assigned this Dec 24, 2016
@Mikhus Mikhus added the bug label Dec 24, 2016
@Mikhus Mikhus added this to the 2.1.1 milestone Dec 24, 2016
@Mikhus
Copy link
Owner

Mikhus commented Dec 25, 2016

Fixed in branch v2.1.1

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

No branches or pull requests

2 participants