summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matthew Ng <ngmatthew@google.com> 2017-05-02 16:47:53 -0700
committer Matthew Ng <ngmatthew@google.com> 2017-05-03 17:09:32 -0700
commit064bd9733360fbe43f9866d53639f60186e2016b (patch)
treea0165505b9c0c1f0fe1ac378642f029968210326
parent34ab1f6a310beef667182e99c3a360391b225298 (diff)
Reset touch location after touch slop is exceeded in recents
There was a jump when a user touch moves over the slop value. To fix this the location is updated to new y position so that the move animation of the card after has no visual jump. Change-Id: Ia9b1d04cc0b2983c2e61114ebbf3bdeb154404e9 Fixes: 35720341 Test: manual - enter recents and slowly drag a card vertically and notice no jump with the fix, moving after the slop has a consistent motion
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java
index 5817e9252c73..36be49deef35 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java
@@ -279,6 +279,7 @@ class TaskStackViewTouchHandler implements SwipeHelper.Callback {
}
MetricsLogger.action(mSv.getContext(), MetricsEvent.OVERVIEW_SCROLL);
+ mLastY = mDownY = y;
}
}
if (mIsScrolling) {