mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Preventing delayed processing of old touch target in Customization drawer.
Change-Id: I982d953814e13ce195eee1aaa6739e895e328b2a
This commit is contained in:
@@ -302,6 +302,8 @@ public class CustomizePagedView extends PagedView
|
||||
|
||||
// End the current choice mode so that we don't carry selections across tabs
|
||||
endChoiceMode();
|
||||
// Reset the touch item (if we are mid-dragging)
|
||||
mLastTouchedItem = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -417,7 +419,7 @@ public class CustomizePagedView extends PagedView
|
||||
boolean yMoved = yDiff > touchSlop;
|
||||
boolean isUpwardMotion = (yDiff / (float) xDiff) > mDragSlopeThreshold;
|
||||
|
||||
if (isUpwardMotion && yMoved) {
|
||||
if (isUpwardMotion && yMoved && mLastTouchedItem != null) {
|
||||
// Drag if the user moved far enough along the Y axis
|
||||
beginDragging(mLastTouchedItem);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user