Skip to content

Commit 7c52285

Browse files
authored
Call onReset before clearing view
1 parent cb2c528 commit 7c52285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -770,14 +770,14 @@ open class GestureHandler<ConcreteGestureHandlerT : GestureHandler<ConcreteGestu
770770
}
771771
}
772772
fun reset() {
773+
onReset()
773774
view = null
774775
orchestrator = null
775776
Arrays.fill(trackedPointerIDs, -1)
776777
trackedPointersIDsCount = 0
777778
trackedPointersCount = 0
778779
trackedPointers.fill(null)
779780
touchEventType = RNGestureHandlerTouchEvent.EVENT_UNDETERMINED
780-
onReset()
781781
}
782782

783783
fun withMarkedAsInBounds(closure: () -> Unit) {

0 commit comments

Comments
 (0)