Skip to content

Commit 783dcaf

Browse files
committed
chore: refactor
1 parent 0ce2ce6 commit 783dcaf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,7 @@ public final void handle(MotionEvent origEvent) {
329329
int action = event.getActionMasked();
330330
if(action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_POINTER_DOWN) {
331331
if (mListener != null && !mListener.shouldStartGesture((T) this, event)) {
332-
if (mState == STATE_BEGAN) {
333-
fail();
334-
} else {
335-
fail();
336-
}
332+
fail();
337333
if (event != origEvent) {
338334
event.recycle();
339335
}

0 commit comments

Comments
 (0)