We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2476d1 commit 49a0ba5Copy full SHA for 49a0ba5
1 file changed
packages/react-native-gesture-handler/src/v3/components/Touchable/Touchable.tsx
@@ -93,10 +93,10 @@ export const Touchable = (props: TouchableProps) => {
93
(e: EndCallbackEventType) => {
94
if (pointerState.current === PointerState.INSIDE) {
95
onPressOut?.(e);
96
+ }
97
- if (!e.canceled && !longPressDetected.current) {
98
- onPress?.(e);
99
- }
+ if (!e.canceled && !longPressDetected.current && e.pointerInside) {
+ onPress?.(e);
100
}
101
102
pointerState.current = PointerState.UNKNOWN;
@@ -106,7 +106,7 @@ export const Touchable = (props: TouchableProps) => {
106
longPressTimeout.current = undefined;
107
108
},
109
- [onPressOut]
+ [onPressOut, onPress]
110
);
111
112
const onUpdate = useCallback(
0 commit comments