From 064bd9733360fbe43f9866d53639f60186e2016b Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Tue, 2 May 2017 16:47:53 -0700 Subject: [PATCH] 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 --- .../systemui/recents/views/TaskStackViewTouchHandler.java | 1 + 1 file changed, 1 insertion(+) 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 5817e9252c733..36be49deef359 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) {