timusus / RecyclerView-FastScroll

A simple FastScroller for Android's RecyclerView
Other
1.39k stars 182 forks source link

FastScroller touch input doesn't respect RecyclerView padding #120

Open alexandermarinissen opened 2 years ago

alexandermarinissen commented 2 years ago

I have a RecyclerView that matches the width and height of my display. However, the RecyclerView has a top and bottom padding of let's say 100dp. The FastScroller is rendered correctly (i.e. it only starts 100dp from the top of the screen and ends at 100dp above the bottom), but it still thinks touch input should go from the very top of the screen to the very bottom. This means that I have to drag my finger all the way to the top, instead of 100dp from the top, and thus the FastScroller doesn't track my finger accurately.