Issue with handle not scrolling list in certain circumstances
See original GitHub issueHello! Thanks for making this project, I’ve found it really easy to integrate and style, I really appreciate that it exists 😃
I have an issue where the fast scroller gets stuck sometimes. What seems to prompt it is that I scroll using the fast scroller handle, then just scroll a little by touching the RecyclerView
directly. After this, if I grab the fast scroller handle, I can move the handle up and down all the way from the top to the bottom of the screen, but the position in the list and the popup text do not change.
I can see that my onChange
is not getting called either. If I implement a HandleStateListener
I can see that onDragged
is being fired, but in this situation, it always has a position of -1
.
Then if I scroll the RecyclerView
directly again, it becomes “reattached” and the fast scroller handle jumps back to the correct position and is able to be used properly again, with the correct position reported in onDragged
, the correct text in onChange
, and so on.
I can’t work out a way to reliably replicate this — it seems to happen only sometimes, perhaps based on the position of the items on screen?
Hope this has given you enough info to be able to replicate and fix. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (5 by maintainers)
Hmm this isn’t happening now. Perhaps it was a one-off the first time I built the app to my phone? Regardless, I’ve been unable to replicate it since, so please don’t worry about it, I think we should consider this fixed 🙂
I’ve annotated this screenshot with a circle showing roughly where I’m touching the screen with my thumb. What I would expect (and what used to happen) is that the quick scroller handle sat directly under my thumb. However as I move my thumb up and down the track, the handle always sits at about this offset from where my thumb actually is. I hope that explains it.