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

Commit be2a0989 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev

parents beebc45e e46c7613
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ public class MotionPauseDetector {
        mForcePauseTimeout.setAlarm(mMakePauseHarderToTrigger
                ? HARDER_TRIGGER_TIMEOUT
                : FORCE_PAUSE_TIMEOUT);
        float newVelocity = mVelocityProvider.addMotionEvent(ev, pointerIndex);
        float newVelocity = mVelocityProvider.addMotionEvent(ev, ev.getPointerId(pointerIndex));
        if (mPreviousVelocity != null) {
            checkMotionPaused(newVelocity, mPreviousVelocity, ev.getEventTime());
        }