Increase touch area fast scroll thumb

This commit is contained in:
M66B 2020-01-26 18:56:58 +01:00
parent 7054afec29
commit 4caee9b444
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ public class FastScrollerEx extends RecyclerView.ItemDecoration implements Recyc
@VisibleForTesting
boolean isPointInsideVerticalThumb(float x, float y) {
return (isLayoutRTL() ? x <= mVerticalThumbWidth
: x >= mRecyclerViewWidth - mVerticalThumbWidth)
: x >= mRecyclerViewWidth - mVerticalThumbWidth * 3)
&& y >= mVerticalThumbCenterY - mVerticalThumbHeight / 2
&& y <= mVerticalThumbCenterY + mVerticalThumbHeight / 2;
}