File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lib/src/main/java/com/swmansion/gesturehandler
src/main/java/com/swmansion/gesturehandler/react Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ open class GestureHandler<ConcreteGestureHandlerT : GestureHandler<ConcreteGestu
797
797
}
798
798
}
799
799
800
- data class PointerData (
800
+ private data class PointerData (
801
801
val pointerId : Int ,
802
802
var x : Float ,
803
803
var y : Float ,
Original file line number Diff line number Diff line change @@ -433,7 +433,10 @@ class RNGestureHandlerModule(reactContext: ReactApplicationContext?) :
433
433
434
434
override fun setGestureHandlerState (handlerTag : Int , newState : Int ) {
435
435
registry.getHandler(handlerTag)?.let { handler ->
436
+ // Try to initialize the handler in case it was not yet initialized
436
437
handler.initialize()
438
+ // Try to transition to the BEGIN state (possible only from UNDETERMINED)
439
+ // to force the correct event flow
437
440
handler.begin()
438
441
439
442
when (newState) {
You can’t perform that action at this time.
0 commit comments