Skip to content

Commit 4735e63

Browse files
committed
Add missing check
1 parent 5d3fbc2 commit 4735e63

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ class NativeViewGestureHandler : GestureHandler() {
9999
}
100100

101101
override fun shouldBeCancelledBy(handler: GestureHandler): Boolean = !disallowInterruption ||
102-
(yieldsToNativeGestures && handler is NativeViewGestureHandler)
102+
(
103+
yieldsToNativeGestures &&
104+
(handler is NativeViewGestureHandler || handler is RNGestureHandlerRootHelper.RootViewGestureHandler)
105+
)
103106

104107
override fun shouldBeginWithRecordedHandlers(recorded: List<GestureHandler>): Boolean =
105108
hook.shouldBeginWithRecordedHandlers(recorded, this)

0 commit comments

Comments
 (0)