You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
20
20
privateval jsGestureHandler:GestureHandler?
21
21
val rootView:ViewGroup
22
22
privatevar shouldIntercept =false
23
+
privatevar wasIntercepting =false
23
24
privatevar passingTouch =false
24
25
25
26
init {
@@ -129,6 +130,14 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
129
130
passingTouch =true
130
131
orchestrator!!.onTouchEvent(event)
131
132
passingTouch =false
133
+
134
+
// On the transition into interception, cancel the native views the pointers landed on - the
135
+
// framework's ACTION_CANCEL never reaches them since RNGH ignores `onInterceptTouchEvent`
0 commit comments