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

timeline: pinch to zoom out zooms to an extreme when touch points get close #171

Closed
scronay opened this issue Nov 7, 2019 · 1 comment · Fixed by #275
Closed

timeline: pinch to zoom out zooms to an extreme when touch points get close #171

scronay opened this issue Nov 7, 2019 · 1 comment · Fixed by #275
Assignees
Labels
bug Something isn't working released

Comments

@scronay
Copy link

scronay commented Nov 7, 2019

Seeing this in my downloaded code and on the example page:
https://visjs.github.io/vis-timeline/examples/timeline/basicUsage.html

Reproduce by touching and pinching slowly in on the timeline. At a certain point, when the touch points get close enough, the timeline will fly off to one direction and end on an extreme end of the time span.

I was able to replicate this on a Surface Pro 7 in Chrome & Edge, and on Android in Chrome.

Before zoom:
image

After zoom:
image

Additional info:

It appears that the initial distance of the touch points affects the distance at which the timeline flies away. For example, if I place a finger at the far end of each side of the timeline, the behavior begins when I get a little over 1/3rd of the way from either side towards the center.

@yotamberk yotamberk added the bug Something isn't working label Nov 9, 2019
@yotamberk yotamberk self-assigned this Jan 25, 2020
yotamberk added a commit that referenced this issue Jan 31, 2020
* fix: pinch to zoom out in close pinch (#171)

* Update Range.js
@vis-bot
Copy link
Collaborator

vis-bot commented Jan 31, 2020

🎉 This issue has been resolved in version 7.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants