Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: latest
Devices/Android versions reproduced on: all version
If this is a bug in the library, we would appreciate if you could attach:
Hi I recently use RecyclerView with PagerSnapHelper to mock ViewPager. But I found that it would cause swing unexpectedly when I scroll the RecyclerView fast.
I think I have already found the flaw here. There are two scenes that would cause snap:
1. RecyclerView fling -> PagerSnapHelper onFling -> snap
2. RecyclerView scroll state set as Idle -> snap
but two ways use different way to determinte which view is the Target View
So I gave it a solution, when the RecyclerView's scroll state is set as SETTLING . I make the RecyclerView layout frozon. In my opinion, that would make the RecyclerView doesn't respond to user interaction (MotionEvent) to scroll.
It seems to solve the problem. But I don't know if it is the flaw of RecyclerView or PagerSnapperHelper themselves. Or is there any better solution here?