File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
packages/react-native-gesture-handler/src Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export default {
85
85
} ,
86
86
dropGestureHandler ( handlerTag : number ) {
87
87
if ( shouldPreventDrop ) {
88
+ shouldPreventDrop = false ;
88
89
return ;
89
90
}
90
91
Original file line number Diff line number Diff line change @@ -356,14 +356,21 @@ export default abstract class GestureHandler implements IGestureHandler {
356
356
return ;
357
357
}
358
358
359
- const { onGestureHandlerTouchEvent } : PropsRef = this . propsRef
360
- . current as PropsRef ;
359
+ const { onGestureHandlerEvent , onGestureHandlerTouchEvent } : PropsRef = this
360
+ . propsRef . current as PropsRef ;
361
361
362
362
const touchEvent : ResultTouchEvent | undefined =
363
363
this . transformTouchEvent ( event ) ;
364
364
365
365
if ( touchEvent ) {
366
- invokeNullableMethod ( onGestureHandlerTouchEvent , touchEvent ) ;
366
+ if (
367
+ this . actionType === ActionType . NATIVE_DETECTOR ||
368
+ this . actionType === ActionType . NATIVE_DETECTOR_ANIMATED_EVENT
369
+ ) {
370
+ invokeNullableMethod ( onGestureHandlerTouchEvent , touchEvent ) ;
371
+ } else {
372
+ invokeNullableMethod ( onGestureHandlerEvent , touchEvent ) ;
373
+ }
367
374
}
368
375
}
369
376
You can’t perform that action at this time.
0 commit comments