Make it slightly harder to swipe episodes (#5135)

This commit is contained in:
Tony Tam 2021-11-14 04:35:54 -08:00 committed by GitHub
parent e41f625488
commit 906341a229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -201,12 +201,12 @@ public class SwipeActions extends ItemTouchHelper.SimpleCallback implements Life
@Override @Override
public float getSwipeEscapeVelocity(float defaultValue) { public float getSwipeEscapeVelocity(float defaultValue) {
return swipeOutEnabled ? defaultValue : Float.MAX_VALUE; return swipeOutEnabled ? defaultValue * 1.5f : Float.MAX_VALUE;
} }
@Override @Override
public float getSwipeVelocityThreshold(float defaultValue) { public float getSwipeVelocityThreshold(float defaultValue) {
return swipeOutEnabled ? defaultValue : 0; return swipeOutEnabled ? defaultValue * 0.6f : 0;
} }
@Override @Override