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

Incorrect pan position after zooming with a single pointer. #651

Open
Fydar opened this issue Aug 14, 2023 · 0 comments
Open

Incorrect pan position after zooming with a single pointer. #651

Fydar opened this issue Aug 14, 2023 · 0 comments

Comments

@Fydar
Copy link

Fydar commented Aug 14, 2023

Describe the bug

When using a mouse (or a single pointer), zooming whilst panning causes the document to jitter as the pan start position is not adjusted.

Your environment

  • Latest 7428761 (4.5.1)
  • Google Chrome, version 115.0.5790.171

Expected behavior

No jitter when panning.

Actual behavior

Jitter is seen when panning and zooming. This jitter occurs after the first "mousemove" event after the zoom.

panzoom-actual-behaviour

Steps to reproduce

  1. Navigate to the "Panning and focal-point zooming" demo at https://timmywil.com/panzoom/demo/
  2. Start a pan by clicking within the panzoom area (the further away from 0, 0, the more pronounced the effect will be)
  3. Zoom using your scroll wheel
  4. Pan the mouse again and observe a jitter as the object snaps to the wrong position.
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

No branches or pull requests

1 participant