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 using zoomPercent #381

Closed
wants to merge 1 commit into from
Closed

Zoom using zoomPercent #381

wants to merge 1 commit into from

Conversation

jepperaskdk
Copy link

@jepperaskdk jepperaskdk commented Sep 5, 2020

Solves: #379

So, when using e.g. 1000 data-points, the zoom is slow in ticks of 1. It seems the indices were only changed in ticks of 1, rather than ticks of the percentage of the current-range.
This PR uses the speed property to set the percentage of the current range to be zoomed, e.g. with 1000 data points currently in view, a speed of 0.1 means we zoom 10% in on that range.

Next up should be to zoom at centerPointer, rather than either right or left.

EDIT: Not sure if this overlaps with #152, but please do some update on that in that case.

@gistiv
Copy link

gistiv commented Nov 18, 2020

Same thing for panning would be nice as well

@kurkle
Copy link
Member

kurkle commented Mar 9, 2021

This was fixed by #434

@kurkle kurkle closed this Mar 9, 2021
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.

3 participants