EverythingMe / overscroll-decor

Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
BSD 2-Clause "Simplified" License
2.85k stars 400 forks source link

Overscroll on a view gets stuck #40

Open empathic-narwhal opened 7 years ago

empathic-narwhal commented 7 years ago

When you move the view at rather fast speeds, up and down, with only 1 direction of overscroll, the idle position of the view changes. In my case, I'm allowing a card view to scroll only downward. If I move it too much, randomly, it's rest position becomes lower position. This can be performed many times, making the view stop at lower and lower positions. There is no way to revert this, only by resetting the layout.

Edit: This issue is also happening randomly, with the view getting stuck for no reason, when I swipe at a normal speed (i can then overscroll it as usual, but the view is displaced for the original position).

d4vidi commented 7 years ago

@empathic-narwhal thanks for this submission. Does your card-view fit inside the screen, or is it in fact scrollable? Can you share your code for setting up the over-scroll effect? Last but not least, to make sure I understand correctly - your view over-scrolls downwards but doesn't bounce back?