-
I don't know if this is the expected behavior, but I need for my use case useDrag to work only with mouse and not with touch devices.
With this code, touch* events are still being fired. Can anyone shed some light on this? |
Beta Was this translation helpful? Give feedback.
Answered by
dbismut
Jan 4, 2024
Replies: 1 comment 4 replies
-
Did you read the documentation? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The doc doesn't say anything about disabling events for touch devices.
https://use-gesture.netlify.app/docs/options/#pointertouch
So it's not disabling anything it's just merely toggling between using
PointerEvents
andTouchEvents
.