Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev
This commit is contained in:
commit
be2a0989ce
1 file changed
+1
-1
@@ -121,7 +121,7 @@ public class MotionPauseDetector {
|
|||||||
mForcePauseTimeout.setAlarm(mMakePauseHarderToTrigger
|
mForcePauseTimeout.setAlarm(mMakePauseHarderToTrigger
|
||||||
? HARDER_TRIGGER_TIMEOUT
|
? HARDER_TRIGGER_TIMEOUT
|
||||||
: FORCE_PAUSE_TIMEOUT);
|
: FORCE_PAUSE_TIMEOUT);
|
||||||
float newVelocity = mVelocityProvider.addMotionEvent(ev, pointerIndex);
|
float newVelocity = mVelocityProvider.addMotionEvent(ev, ev.getPointerId(pointerIndex));
|
||||||
if (mPreviousVelocity != null) {
|
if (mPreviousVelocity != null) {
|
||||||
checkMotionPaused(newVelocity, mPreviousVelocity, ev.getEventTime());
|
checkMotionPaused(newVelocity, mPreviousVelocity, ev.getEventTime());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user