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.
@@ -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
 
@@ -36,6 +36,7 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
36
36
  wrappedView,
37
37
  registry,
38
38
  RNViewConfigurationHelper(),
39
+ rootView,
39
40
  ).apply {
40
41
  minimumAlphaForTraversal = MIN_ALPHA_FOR_TOUCH
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gesture-handler",
3
- "version": "2.30.0-20251106-b53b8ef67",
3
+ "version": "2.30.0-20251112-cbd97db52",
4
4
  "description": "Declarative API exposing native platform touch and gesture system to React Native",
5
5
  "scripts": {
6
6
  "test": "jest",