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

Commit 0d110b23 authored by Ameer Armaly's avatar Ameer Armaly
Browse files

MultiFingerSwipe: scale touch slop to number of fingers.

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