davideas / FlexibleAdapter

Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
Apache License 2.0
3.56k stars 552 forks source link

Resolve FastScroller jerkiness when at the top and bottom of the recycleview #740

Open JudahSoftware opened 5 years ago

JudahSoftware commented 5 years ago

When the FastScroller is at the top of the view, it will jump down on the initial touch, and when it is at the bottom, it will jump up.

This can be resolved by saving an initial down offset in the down motion event, which should be the handle Y minus the event Y. Then in the move event, add the initial down offset to the event Y before passing it along to setBubbleAndHandlePosition and setRecyclerViewPosition.