danoz73 / RecyclerViewFastScroller

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

RecyclerView.OnScrollListener does not fire when FastScroll scrolls the RecyclerView #33

Open firekesti opened 9 years ago

firekesti commented 9 years ago

Hey, I was hoping to fix up the performance of my list by not loading images if the Fast Scroller is active, but I can't seem to find a way to determine when that happens!

In the RecyclerView.OnScrollListener I'm using, onScrolled does fire, but it doesn't give me enough information to tell when a scroll is occurring, just when a scroll has happened. onScrollStateChanged does NOT fire with the new state when the Fast Scroller is active! It looks like this is a bug in RecyclerView itself: https://stackoverflow.com/questions/27819507/recyclerview-scrolltoposition-not-trigger-scrolllistener)

...but would there be a way to add a workaround specific to this library? Like being able to listen for when a user grabs the fast scroll handle? Or a new FastScrollListener that uses that event?

Thanks so much for this library!