diff --git a/packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt b/packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt index d2a78f06e9..ec1fb32227 100644 --- a/packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +++ b/packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt @@ -40,11 +40,11 @@ class RNGestureHandlerRootView(context: Context?) : ReactViewGroup(context) { super.dispatchTouchEvent(event) } - override fun dispatchGenericMotionEvent(event: MotionEvent) = - if (rootViewEnabled && rootHelper!!.dispatchTouchEvent(event)) { + override fun dispatchGenericMotionEvent(ev: MotionEvent) = + if (rootViewEnabled && rootHelper!!.dispatchTouchEvent(ev)) { true } else { - super.dispatchGenericMotionEvent(event) + super.dispatchGenericMotionEvent(ev) } override fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {