Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolls to far #2

Closed
lawloretienne opened this issue Aug 31, 2016 · 5 comments
Closed

Scrolls to far #2

lawloretienne opened this issue Aug 31, 2016 · 5 comments

Comments

@lawloretienne
Copy link

So i started testing out this GravitySnapHelper and i noticed a very subtle issue that arises after continually testing. So its difficult to reproduce every single time but i have tested it enough to reproduce it several times.

If you are scrolling through the RecyclerView with a swipe gesture, your finger remains on the screen and you let go while the second half of an item ( lets say item number 5) in the adapter shows then it slides to the left so then item number 6 is the furthest left item to show.

Now if you are scrolling through the RecyclerView with a swipe gesture, your finger remains on the screen and you let go while the first half of an item ( lets say item number 5) in the adapter shows then it slides to the left so then item number 5 is the furthest left item to show.

Once in awhile, if you are scrolling through the RecyclerView with a swipe gesture, your finger remains on the screen and you let go while the first half of an item ( lets say item number 5) in the adapter shows then it slides to the left so then item number 4 is the furthest left item to show. So in this case it slides too far.

@rubensousa
Copy link
Owner

I think you're describing a fling gesture, but I'm not sure. If you swipe fast enough, the recyclerview will scroll for more items. Isn't this what's happening? You can control the fling speed, but it's out of context for this sample. If I'm mistaken, please provide a gif that reproduces this so I can take a look.

@lawloretienne
Copy link
Author

Check out this video. It shows the issue i'm talking about.
https://goo.gl/photos/TSmEL6AvdeiDThJ78

@rubensousa
Copy link
Owner

Oh, I see now. This also happened to me a couple of times. I'll take a look at this later.

rubensousa added a commit that referenced this issue Sep 25, 2016
@rubensousa
Copy link
Owner

Should be fixed in release 0.2

@rubensousa
Copy link
Owner

Fixed properly in 0.3. I've opened an issue in the official bug tracker since this problem was due to LinearSnapHelper: https://code.google.com/p/android/issues/detail?id=223649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants