-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel event for all Gestures #2733
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Steps to reproduce and Snack or a link to a repository sections. |
It's certainly something we could explore in the future, but I cannot promise anything at this moment. You could accomplish something similar using |
unfortunately, this trick doesn't work as i expected. It is not cancelling the gesture, i can keep panning. I created a sharedValue called it does not stops my gesture when i reach 50. |
This needs to be a state unfortunately, since shared value will not update the gesture config. |
Description
Would be very helpful if we had a
.cancel()
event for all the gestures to be able to cancel the one of the active events while using others.Let's say we have 3 gestures running simultaneously,
Pinch, Pan, LongPress
and let's say i wan't to cancel the
LongPress
event after a swipeWith current implementation you can do this ofc, but it is very tricky.
Instead if we had a
cancel
event,For example:
Steps to reproduce
Snack or a link to a repository
Gesture Handler version
2.14.0
React Native version
0.72.4
Platforms
Android, iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: