Tweak swipe detector

(cherry picked from commit 2c1b89e0bcf9f0dcdc080c029e1246ab6f010cea)
This commit is contained in:
Stephen Paul Weber 2023-03-11 21:30:19 -05:00 committed by Arne
parent 5f7c9cc716
commit bb9ea37925

View file

@ -55,7 +55,7 @@ public class SwipeDetector implements View.OnTouchListener {
float deltaX = downX - upX;
float deltaY = downY - upY;
if (deltaY>0 && deltaY<10 && deltaX<0 || deltaY==0 && deltaX>-15 && deltaX<0) {
if (Math.abs(deltaY) < 15 && deltaX < -15) {
v.getParent().requestDisallowInterceptTouchEvent(true);
}