danoz73 / RecyclerViewFastScroller

A Fast Scroller for the RecyclerView world!
Other
1.13k stars 211 forks source link

Incorrect values for VerticalScrollBoundsProvider (?) #63

Open nakvic opened 8 years ago

nakvic commented 8 years ago

it seems that method VerticalRecyclerViewFastScroller::onCreateScrollProgressCalculator take wrong values for BoundsProvider. To get scroll progress rendered correctly I overwrote VerticalRecyclerViewFastScroller::onCreateScrollProgressCalculator with the following:

VerticalScrollBoundsProvider boundsProvider = new VerticalScrollBoundsProvider( mHandle.getHeight(), mBar.getHeight() - mBar.getY() - 2 * mHandle.getHeight() );

instead of (which is in VerticalRecyclerViewFastScroller::onCreateScrollProgressCalculator : line 59)

new VerticalScrollBoundsProvider( mBar.getY(), mBar.getY() + mBar.getHeight() - mHandle.getHeight() );

Regards, Victor