Skip to content

Conversation

@MindFreeze
Copy link
Contributor

@MindFreeze MindFreeze commented Dec 18, 2024

This refactor changed how updateRange works when panning numeric scales and caused a bug when you zoom in & pan on dynamic scales. It prevents the scale from adapting even after a zoom out.
I've added a new pan arg instead of highjacking the zoom argument. This fixes the issue and is much cleaner code anyway.

Here is a video of the bug:

Screen.Recording.2024-12-18.at.14.59.27.mov

fixes home-assistant/frontend#23463

@kurkle kurkle merged commit 77ed88c into chartjs:master Feb 15, 2025
12 of 13 checks passed
@kurkle kurkle added the bug label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

graph panning resets view

2 participants