-
Hello, I am trying to build zoomIn/zoomOut functionality with wheel and pinch gestures. For pinch, I am using the code I've found here How can I recreate the same behavior ("velocity/delta") using |
Beta Was this translation helpful? Give feedback.
Answered by
dbismut
Mar 27, 2022
Replies: 1 comment 5 replies
-
Otherwise have a look at the source code here https://github.com/pmndrs/use-gesture/blob/main/packages/core/src/engines/PinchEngine.ts#L267 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
dmagunov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
onPinch
kinda supports wheel events out of the box with the control key pressed, just so you know.Otherwise have a look at the source code here https://github.com/pmndrs/use-gesture/blob/main/packages/core/src/engines/PinchEngine.ts#L267