Skip to content

Commit 5e50a8f

Browse files
author
Andrzej Antoni Kwaśniewski
committed
hover exit
1 parent d1a5715 commit 5e50a8f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ class GestureHandlerOrchestrator(
5858
if (finishedHandlersCleanupScheduled && handlingChangeSemaphore == 0) {
5959
cleanupFinishedHandlers()
6060
}
61-
if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {
61+
if (action == MotionEvent.ACTION_UP ||
62+
action == MotionEvent.ACTION_CANCEL ||
63+
action == MotionEvent.ACTION_HOVER_EXIT
64+
) {
6265
if (awaitingHandlers.isEmpty() && rootView is RootView) {
6366
rootView.onChildEndedNativeGesture(rootView, event)
6467
}

0 commit comments

Comments
 (0)