|
@@ -22,7 +22,7 @@ public class OnSwipeTouchListener implements OnTouchListener {
|
|
|
|
|
|
private final class GestureListener extends SimpleOnGestureListener {
|
|
|
|
|
|
- private static final int SWIPE_THRESHOLD = 120;
|
|
|
+ private static final int SWIPE_THRESHOLD = 50;
|
|
|
private static final int SWIPE_VELOCITY_THRESHOLD = 150;
|
|
|
|
|
|
@Override
|
|
@@ -36,7 +36,7 @@ public class OnSwipeTouchListener implements OnTouchListener {
|
|
|
try {
|
|
|
float diffX = e2.getX() - e1.getX();
|
|
|
|
|
|
- if (Math.abs(diffX) > SWIPE_THRESHOLD && Math.abs(velocityX) > SWIPE_VELOCITY_THRESHOLD) {
|
|
|
+ if (Math.abs(diffX) > SWIPE_THRESHOLD) {
|
|
|
if (diffX > 0) {
|
|
|
onSwipeRight();
|
|
|
} else {
|