Dan-TD / SnappyRecyclerView

An extension to RecyclerView which will snap to child Views to the specified anchor, START, CENTER or END.
MIT License
178 stars 19 forks source link

logcat going nuts #8

Open sofakingforever opened 7 years ago

sofakingforever commented 7 years ago

Hi there, I'm trying the SnappyRecyclerView now, and the logcat seems to be printing an error every 40ms or so... " E/RecyclerView: Smooth Scroll action is being updated too frequently. Make sure you are not changing it unless necessary"

sofakingforever commented 7 years ago

Looking at the code, it seems like while SCROLL_STATE_IDLE, it will try to smoothScrollToPosition again.

Dan-TD commented 7 years ago

I actually did look in to this and forgot to write back to you, I didn't see this in the logs, could you tell me what device you saw this on?

zxyufan commented 3 years ago

SmoothScroller instance is supposed to be used for only once, next time scroll to another position you need to create a new scroller.