You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the target element is much larger than its container, then when zoomed out, zooming with pinching messes up the whole "scene" as the focal point is wrong and zoom speed gets significantly increased. Check out this JSFiddle. Pinch-zoom out to see the whole green element inside the blue container, then release, then pinch-zoom again. The focal point seems to be somewhere in the top-left area instead of the correct position.
Your environment
Version of panzoom: 4.5.1
Browser and browser version: Chrome, 130.0.6723.92 (Official Build) (64-bit)
Expected behavior
Pinch-zooming should behave as intuition tells us.
Actual behavior
Pinch-zooming goes haywire, the target element goes out of the container, zooming "speeds up" significantly.
Steps to reproduce
Check out the JSFiddle above.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the target element is much larger than its container, then when zoomed out, zooming with pinching messes up the whole "scene" as the focal point is wrong and zoom speed gets significantly increased. Check out this JSFiddle. Pinch-zoom out to see the whole green element inside the blue container, then release, then pinch-zoom again. The focal point seems to be somewhere in the top-left area instead of the correct position.
Your environment
Expected behavior
Pinch-zooming should behave as intuition tells us.
Actual behavior
Pinch-zooming goes haywire, the target element goes out of the container, zooming "speeds up" significantly.
Steps to reproduce
Check out the JSFiddle above.
The text was updated successfully, but these errors were encountered: