activeOffset/failOffset for TapGestureHandler #1416
levibuzolic
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible/is there any appetite for adding
activeOffsetX/Y
andfailOffsetX/Y
toTapGestureHandler
to give finer control over tap gestures?The
maxDelta
andminDelta
APIs are great, however when using aTapGestureHandler
to control gesture events flowing through to scrollable view (ie. like a bottom-sheet implementation) I've found myself wanting to use theactive/failOffset
APIs to better control when a gesture activates/fails.While it's not a primary use case of the
TapGestureHandler
, I think this could open up a few more possibilities and would have hte added benefit of more consistent API across the pan and tap gesture handlers.I haven't looked too closely at the native code, but from a quick glance the underlying gesture systems don't seem too different between the tap/pan handlers, but I wanted to check if there was any limitations/design decisions I'm missing before digging into it too deeply.
Beta Was this translation helpful? Give feedback.
All reactions