Replies: 1 comment
-
Did you read the documentation on Not sure I have a good answer to your problem. Is there a way, without useGesture to disable the built-in back gesture? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I'm using use-gesture to handle the back swipe gesture myself, so in browsers with a builtin back swipe gesture, it'll go back twice. I wanted to use
preventDefault
to disable the builtin gestures. However, if I enablepreventDefault
, it seems to disable all clicks. I assumedfilterTaps
would ignore all taps/clicks.I tried calling handling the
touchstart
event myself and callingpreventDefault
(as recommended on Stackoverflow for disabling native swipe), but this seems to break use-gesture.Is there an easy way to disable native gestures and use use-gesture?
Information:
Checklist:
touch-action: none
to the draggable element.Beta Was this translation helpful? Give feedback.
All reactions