AndroidDeveloperLB / LollipopContactsRecyclerViewFastScroller

A sample of how to mimic the way that the contacts app handles a Fast-Scroller for a RecyclerView
Apache License 2.0
540 stars 95 forks source link

Bug: scroller moves far from current position on some cases #7

Open AndroidDeveloperLB opened 9 years ago

AndroidDeveloperLB commented 9 years ago

steps:

  1. make the items count to 20.
  2. drag the fast-scroller to the middle (or anything else).
  3. scroll a really tiny bit (in the recyclerView itself)

The bug: it shows the scrollber very far from its previous position.

davideas commented 8 years ago

@AndroidDeveloperLB, I've reproduced this behavior, I think it's because the real linked position is lower so, scrolling the RV it adjust the handle at the correct (for him) Y height.

I can see a solution, when finish to drag the FastScroller, we can recalculate the real position, at that point, the handle will be positioned at the right position.

AndroidDeveloperLB commented 8 years ago

@davideas It would be great if you'd show a solution .