Reset pinch offset, change pinch sensitivity and change unpinching behaviour #669
Unanswered
ElectricPulse
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a custom html canvas library. I wanted to use react-use-gesture for the zooming, dragging on the canvas.
For zooming I used the usePinch hook which crucially provides event.origin (which useWheel doesn't). usePinch with a wheel needs to know the actual offset and spins off to crazy numbers if improper scaleBounds are set. Letting usePinch control the offset state causes a couple implementation issues.
Beta Was this translation helpful? Give feedback.
All reactions