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

Radial needle animation occasionally jumps "back" on Firefox if value updated frequently #252

Open
panuworld opened this issue Feb 4, 2022 · 2 comments

Comments

@panuworld
Copy link

Trying achieve smooth needle behavior with animated radial gauge seem to be impossible at least on Firefox 96.0.3 (64-bit). If the gauge value is changed a few times before the previous animation has completed, the needle occasionally "jumps" back to some of the previous values. It looks like that a new animation is started using some old value as the starting value, not the current needle position.

The only workaround I have found out so far is to adjust animationDuration all the time so that previous animation is completed before the next value will be set. However, sometimes it is difficult to estimate when the next value will be assigned, so one has to use very quick animations so that possibility of the next value update before the animation is complete is small.

Keeping animation duration shorter than the value update interval also forces the needle to stop before every update, breaking the smoothness of slowly increasing/decreasing value. I would like to use animation duration slightly longer than the value update interval to keep the needle in motion all the time but that is just not possible with 2.1.7.

@socks415
Copy link

socks415 commented May 3, 2022

I'm experiencing this on chrome as well

@TuShen121
Copy link

TuShen121 commented May 3, 2022 via email

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

No branches or pull requests

3 participants