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: numeric scale panning with dynamic limits #915

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MindFreeze
Copy link

@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

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

Successfully merging this pull request may close these issues.

graph panning resets view
1 participant