forked from mirror/monocles_chat_clean
Tweak swipe detector
(cherry picked from commit 2c1b89e0bcf9f0dcdc080c029e1246ab6f010cea)
This commit is contained in:
parent
5f7c9cc716
commit
bb9ea37925
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue