-
I console logged pinching and dragging on onPinch and both are coming as true. My use case is I want to know when I am dragging the canvas and when I am pinching on the canvas? |
Beta Was this translation helpful? Give feedback.
Answered by
dbismut
Jun 9, 2022
Replies: 1 comment 5 replies
-
@Rajdeepc yes, that's normal. If you want to disable your drag handler while pinching you could just do: useGesture({
onDrag: ({ pinching, ...state }) => {
if(pinching) return
yourDragLogic(state)
},
onPinch: (state) => yourPinchLogic(state)
}) |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
dbismut
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Rajdeepc yes, that's normal. If you want to disable your drag handler while pinching you could just do: