mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 12:54:11 +01:00
Increase touch area fast scroll thumb
This commit is contained in:
@@ -497,7 +497,7 @@ public class FastScrollerEx extends RecyclerView.ItemDecoration implements Recyc
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
boolean isPointInsideVerticalThumb(float x, float y) {
|
boolean isPointInsideVerticalThumb(float x, float y) {
|
||||||
return (isLayoutRTL() ? x <= mVerticalThumbWidth
|
return (isLayoutRTL() ? x <= mVerticalThumbWidth
|
||||||
: x >= mRecyclerViewWidth - mVerticalThumbWidth)
|
: x >= mRecyclerViewWidth - mVerticalThumbWidth * 3)
|
||||||
&& y >= mVerticalThumbCenterY - mVerticalThumbHeight / 2
|
&& y >= mVerticalThumbCenterY - mVerticalThumbHeight / 2
|
||||||
&& y <= mVerticalThumbCenterY + mVerticalThumbHeight / 2;
|
&& y <= mVerticalThumbCenterY + mVerticalThumbHeight / 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user