Skip to content

Commit 83f3a71

Browse files
authored
Cancel failed buttons on reset
1 parent 7c52285 commit 83f3a71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ class NativeViewGestureHandler : GestureHandler<NativeViewGestureHandler>() {
161161
}
162162

163163
override fun onReset() {
164+
if (state == STATE_FAILED && view != null) {
165+
onCancel()
166+
}
164167
this.hook = defaultHook
165168
}
166169

0 commit comments

Comments
 (0)