File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/react-native-gesture-handler/src/web/handlers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ export default abstract class GestureHandler implements IGestureHandler {
405
405
invokeNullableMethod ( onGestureHandlerStateChange , resultEvent ) ;
406
406
}
407
407
if ( this . state === State . ACTIVE ) {
408
+ ( resultEvent . nativeEvent as { oldState ?: any } ) . oldState = undefined ;
408
409
if ( onGestureHandlerAnimatedEvent && this . forAnimated ) {
409
410
invokeNullableMethod ( onGestureHandlerAnimatedEvent , resultEvent ) ;
410
411
}
@@ -421,7 +422,7 @@ export default abstract class GestureHandler implements IGestureHandler {
421
422
nativeEvent : {
422
423
state : newState ,
423
424
handlerTag : this . handlerTag ,
424
- oldState : oldState ,
425
+ oldState : newState !== oldState ? oldState : undefined ,
425
426
handlerData : {
426
427
pointerType : this . pointerType ,
427
428
numberOfPointers : this . tracker . trackedPointersCount ,
You can’t perform that action at this time.
0 commit comments