react-native-gesture-handler 2.30.0-20251106-b53b8ef67 → 2.30.0-20251112-cbd97db52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt
CHANGED
|
@@ -6,6 +6,7 @@ import android.view.MotionEvent
|
|
|
6
6
|
import android.view.View
|
|
7
7
|
import android.view.ViewGroup
|
|
8
8
|
import android.widget.EditText
|
|
9
|
+
import com.facebook.react.uimanager.RootView
|
|
9
10
|
import com.swmansion.gesturehandler.react.RNGestureHandlerRootHelper
|
|
10
11
|
import com.swmansion.gesturehandler.react.RNGestureHandlerRootView
|
|
11
12
|
import java.util.*
|
|
@@ -14,6 +15,7 @@ class GestureHandlerOrchestrator(
|
|
|
14
15
|
private val wrapperView: ViewGroup,
|
|
15
16
|
private val handlerRegistry: GestureHandlerRegistry,
|
|
16
17
|
private val viewConfigHelper: ViewConfigurationHelper,
|
|
18
|
+
private val rootView: ViewGroup,
|
|
17
19
|
) {
|
|
18
20
|
/**
|
|
19
21
|
* Minimum alpha (value from 0 to 1) that should be set to a view so that it can be treated as a
|
|
@@ -56,6 +58,14 @@ class GestureHandlerOrchestrator(
|
|
|
56
58
|
if (finishedHandlersCleanupScheduled && handlingChangeSemaphore == 0) {
|
|
57
59
|
cleanupFinishedHandlers()
|
|
58
60
|
}
|
|
61
|
+
if (action == MotionEvent.ACTION_UP ||
|
|
62
|
+
action == MotionEvent.ACTION_CANCEL ||
|
|
63
|
+
action == MotionEvent.ACTION_HOVER_EXIT
|
|
64
|
+
) {
|
|
65
|
+
if (gestureHandlers.isEmpty() && rootView is RootView) {
|
|
66
|
+
rootView.onChildEndedNativeGesture(rootView, event)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
59
69
|
return true
|
|
60
70
|
}
|
|
61
71
|
|
package/package.json
CHANGED