Skip to content

Commit 476a7c6

Browse files
author
Francesc Campà
authored
Update GestureController.java
1 parent e2ee057 commit 476a7c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/main/java/com/alexvasilkov/gestures/GestureController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ protected boolean onScroll(@NonNull MotionEvent e1, @NonNull MotionEvent e2,
508508
return isScrollDetected;
509509
}
510510

511+
@SuppressWarnings("WeakerAccess") // Public API
511512
protected boolean onFling(@NonNull MotionEvent e1, @NonNull MotionEvent e2,
512513
float vx, float vy) {
513514

@@ -798,6 +799,10 @@ public interface OnGestureListener {
798799
* @return true if event was consumed, false otherwise.
799800
*/
800801
boolean onDoubleTap(@NonNull MotionEvent event);
802+
803+
804+
boolean onFling(@NonNull MotionEvent e1, @NonNull MotionEvent e2,
805+
float vx, float vy);
801806
}
802807

803808
/**

0 commit comments

Comments
 (0)