summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Zaidi <azaidi@live.nl>2019-04-24 23:30:27 +0200
committeralk3pInjection <webmaster@raspii.tech>2021-09-27 21:17:05 +0800
commita63821c5caf24880c3e18eba3681e541ee9ffa26 (patch)
tree81f2f74458be92a7fe2b1f2ad90def241a27203f
parentc37c77f4b7efc2ce433b108ee7420abcfdb38e24 (diff)
Trebuchet: Do not check fast scroll movement to fix unresponsiveness
Change-Id: I14a987a284c237e8faff53a3d26d4020cd39f32a
-rw-r--r--src/com/android/launcher3/views/RecyclerViewFastScroller.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/launcher3/views/RecyclerViewFastScroller.java b/src/com/android/launcher3/views/RecyclerViewFastScroller.java
index 6a8333233..b115528b5 100644
--- a/src/com/android/launcher3/views/RecyclerViewFastScroller.java
+++ b/src/com/android/launcher3/views/RecyclerViewFastScroller.java
@@ -242,12 +242,10 @@ public class RecyclerViewFastScroller extends View {
case MotionEvent.ACTION_MOVE:
mLastY = y;
- // Check if we should start scrolling, but ignore this fastscroll gesture if we have
- // exceeded some fixed movement
+ // Check if we should start scrolling
mIgnoreDragGesture |= Math.abs(y - mDownY) > mConfig.getScaledPagingTouchSlop();
if (!mIsDragging && !mIgnoreDragGesture && mRv.supportsFastScrolling() &&
- isNearThumb(mDownX, mLastY) &&
- Math.abs(y - mDownY) > mConfig.getScaledTouchSlop()) {
+ isNearThumb(mDownX, mLastY)) {
calcTouchOffsetAndPrepToFastScroll(mDownY, mLastY);
}
if (mIsDragging) {