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

Commit ffb5bdef authored by Ben Pietrzak's avatar Ben Pietrzak
Browse files

Make tap events less sensitive.

Change-Id: I4d6f70b56373fbc51a414510897854078eeb0c40
parent 72325cdb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@ class SimulatedTrackball {
    // Where the cutoff is for determining an edge swipe
    private static final float EDGE_SWIPE_THRESHOLD = 0.9f;
    private static final int FLICK_MSG_ID = 313;
    // TODO: Pass touch slop from the input device
    private static final int TOUCH_SLOP = 30;

    // The position of the previous touchpad event
    private float mLastTouchpadXPosition;
@@ -95,7 +97,7 @@ class SimulatedTrackball {
        mMinFlickDistanceSquared *= mMinFlickDistanceSquared;
        mFlickDecay = Float.parseFloat(SystemProperties.get(
                "persist.sys.vr_flick_decay", "1.3"));
        mTouchSlop = ViewConfiguration.getTouchSlop();
        mTouchSlop = TOUCH_SLOP;
        mTouchSlopSquared = mTouchSlop * mTouchSlop;
    }