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

Zoom with limit keeps panning when panning is disabled #779

Closed
elinake opened this issue Aug 14, 2023 · 1 comment · Fixed by #868
Closed

Zoom with limit keeps panning when panning is disabled #779

elinake opened this issue Aug 14, 2023 · 1 comment · Fixed by #868
Labels

Comments

@elinake
Copy link

elinake commented Aug 14, 2023

I have set limits for zoom like this:

limits: { x: { minRange: 0.1 } }

I have set zoom mode to x, and disabled panning.

When I reach the limit, instead of just stopping the zoom, the chart starts panning left or right, keeping the minimum range.

Example: https://stackblitz.com/edit/stackblitz-starters-utwyr6?file=src%2Fapp%2Fapp.component.ts

In the example the "feature" is easily noticeable with once glance, because the minRange is so high and the chart is so small. But in the actual application my chart is much bigger, and the x-labels might be something like 2.07502, and the limit would be likely something like 0.0001. And when zooming, it keeps calculating the most appropriate time labels, so the x-axis is just a row of long numbers changing a lot, so it is very hard to even realize that the zooming has actually stopped.

@siiiido
Copy link

siiiido commented May 22, 2024

+1

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 a pull request may close this issue.

3 participants