Skip to content

Commit a39de09

Browse files
committed
Add new handler to list after shouldBeginWithRecorded call
1 parent 65ecbe5 commit a39de09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ class GestureHandlerOrchestrator(
448448
return
449449
}
450450

451-
gestureHandlers.add(handler)
452451
handler.isActive = false
453452
handler.isAwaiting = false
454453
handler.activationIndex = Int.MAX_VALUE
@@ -457,6 +456,8 @@ class GestureHandlerOrchestrator(
457456
if (!handler.shouldBeginWithRecorded(gestureHandlers)) {
458457
handler.cancel()
459458
}
459+
460+
gestureHandlers.add(handler)
460461
}
461462

462463
private fun isViewOverflowingParent(view: View): Boolean {

0 commit comments

Comments
 (0)