commit | 602291053ff036022fd8527e776446c474be9e9b | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Mon Nov 28 13:23:59 2022 -0800 |
committer | Tracy Zhou <tracyzhou@google.com> | Mon Nov 28 13:23:59 2022 -0800 |
tree | 43605a2cbd893eef6160b7a89435b5ad647e747f | |
parent | 0de4950f048abba796bea9e55b36769b8a6a21d5 [diff] |
Correct onActionDown trackpad offset values Offsets are increments and the start values on down do not matter Bug: 254783214 Test: manual Change-Id: Ie16f583500069f4677f96ccb2a59c823074d82bd
diff --git a/quickstep/src/com/android/quickstep/inputconsumers/MotionEventsHandler.java b/quickstep/src/com/android/quickstep/inputconsumers/MotionEventsHandler.java index 2373822..54edde6 100644 --- a/quickstep/src/com/android/quickstep/inputconsumers/MotionEventsHandler.java +++ b/quickstep/src/com/android/quickstep/inputconsumers/MotionEventsHandler.java
@@ -54,8 +54,8 @@ public void onActionDown(MotionEvent ev) { mActivePointerId = ev.getPointerId(0); if (isTrackpadMotionEvent(ev)) { - mCurrentTrackpadOffsetX = ev.getAxisValue(AXIS_GESTURE_X_OFFSET); - mCurrentTrackpadOffsetY = ev.getAxisValue(AXIS_GESTURE_Y_OFFSET); + mCurrentTrackpadOffsetX = 0; + mCurrentTrackpadOffsetY = 0; } else { mDownPos.set(ev.getX(), ev.getY()); mLastPos.set(mDownPos);