You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When update('none') is called, already running animations are updated with new values - or the animations are aborted (bad, but at least the result is correct)
Current behavior
While fixing issues in zoom plugin, noticed that if there is an animation (zoom) ongoing and during that zoom user pans the chart =update('none'), points (in this case it was a scatter chart) end up in the wrong places. Panning again fixes the chart.
What happes is:
animations are running, having for example some target coordinates for the points
update none updates the points directly with correct values
next frame, the animations override those directly updated values with the next step in animation - the update is lost
Expected behavior
When update('none') is called, already running animations are updated with new values - or the animations are aborted (bad, but at least the result is correct)
Current behavior
While fixing issues in zoom plugin, noticed that if there is an animation (zoom) ongoing and during that zoom user pans the chart =update('none'), points (in this case it was a scatter chart) end up in the wrong places. Panning again fixes the chart.
What happes is:
Reproducible sample
https://codepen.io/kurkle/pen/NWQVbyB
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.4.6
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: