Skip to content

Commit 1bcda3c

Browse files
committed
fix can coalesce check to v3
1 parent 149c323 commit 1bcda3c

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/events

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class RNGestureHandlerEvent private constructor() : Event<RNGestureHandlerEvent>
6060
}
6161

6262
// Unfortunately getCoalescingKey is not considered when sending event to C++, therefore we have to disable coalescing in v3
63-
override fun canCoalesce() = actionType != GestureHandler.ACTION_TYPE_NATIVE_DETECTOR
63+
override fun canCoalesce() = !GestureHandler.usesNativeOrLogicDetector(actionType)
6464

6565
override fun getCoalescingKey() = coalescingKey
6666

0 commit comments

Comments
 (0)