Disable swipe up/down seek gestures

This commit is contained in:
Andrew Rabert 2019-03-16 23:24:01 -04:00
parent 02ffb3b8f0
commit 9acf64c42b
1 changed files with 3 additions and 0 deletions

View File

@ -708,6 +708,8 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
else if (e2.getX() - e1.getX() > swipeDistance && Math.abs(velocityX) > swipeVelocity) { else if (e2.getX() - e1.getX() > swipeDistance && Math.abs(velocityX) > swipeVelocity) {
action = ACTION_PREVIOUS; action = ACTION_PREVIOUS;
} }
/*
* too finnicky, no visual feedback
// Top to Bottom swipe // Top to Bottom swipe
else if (e2.getY() - e1.getY() > swipeDistance && Math.abs(velocityY) > swipeVelocity) { else if (e2.getY() - e1.getY() > swipeDistance && Math.abs(velocityY) > swipeVelocity) {
action = ACTION_FORWARD; action = ACTION_FORWARD;
@ -716,6 +718,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
else if (e1.getY() - e2.getY() > swipeDistance && Math.abs(velocityY) > swipeVelocity) { else if (e1.getY() - e2.getY() > swipeDistance && Math.abs(velocityY) > swipeVelocity) {
action = ACTION_REWIND; action = ACTION_REWIND;
} }
*/
if (action > 0) { if (action > 0) {
final int performAction = action; final int performAction = action;