Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a070cca5 authored by Ameer Armaly's avatar Ameer Armaly
Browse files

[DO NOT MERGE] MultiFingerSwipe: scale touch slop to number of fingers.

Bug: 162521649
Test: manual
Change-Id: I990693ac07f4653f7d8ff9c097b5720593235afb
parent be8a943e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -294,7 +294,7 @@ class MultiFingerSwipe extends GestureMatcher {
                                + Float.toString(mGestureDetectionThresholdPixels));
                                + Float.toString(mGestureDetectionThresholdPixels));
            }
            }
            if (getState() == STATE_CLEAR) {
            if (getState() == STATE_CLEAR) {
                if (moveDelta < mTouchSlop) {
                if (moveDelta < (mTargetFingerCount * mTouchSlop)) {
                    // This still counts as a touch not a swipe.
                    // This still counts as a touch not a swipe.
                    continue;
                    continue;
                } else if (mStrokeBuffers[pointerIndex].size() == 0) {
                } else if (mStrokeBuffers[pointerIndex].size() == 0) {