1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Increase horizontal swipe sensitivity

This commit is contained in:
M66B 2019-05-03 19:13:43 +02:00
parent 4777d24057
commit eca6c4a2bf

View file

@ -12,8 +12,8 @@ public class SwipeListener implements View.OnTouchListener {
SwipeListener(final Context context, final ISwipeListener listener) {
final int width = context.getResources().getDisplayMetrics().widthPixels;
final int MOVE_THRESHOLD = width / 2;
final int SPEED_THRESHOLD = width / 2;
final int MOVE_THRESHOLD = width / 3;
final int SPEED_THRESHOLD = width;
gestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
@Override