Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class RNGestureHandlerInteractionManager : GestureHandlerInteractionController {
return otherHandler.disallowInterruption
}

if (otherHandler is RNGestureHandlerRootHelper.RootViewGestureHandler) {
return true
}

return false
}
override fun shouldRecognizeSimultaneously(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
}
}

private inner class RootViewGestureHandler : GestureHandler<RootViewGestureHandler>() {
internal inner class RootViewGestureHandler : GestureHandler<RootViewGestureHandler>() {
override fun onHandle(event: MotionEvent, sourceEvent: MotionEvent) {
val currentState = state
// we shouldn't stop intercepting events when there is an active handler already, which could happen when
Expand Down