Not registering onClick in RecyclerView
See original GitHub issueUsing the VerticalOverScrollBounceEffectDecorator
on a RecyclerView causes the first touch over the overscroll to be ignored.
Reproduce steps:
- Swipe to overscroll (couple times)
- Tap the first item in the recyclerview
- No onclick is notified.
When debugging, it seems like the onTouchListener of the Recyclerview in the OverScrollBounceEffectDecoratorBase
is called. This calls the UP on the IdleState and returns false.
But in a normal usecase, the onTouchListener shouldn’t be called when a item is clicked. So it seems like the first touch after the overscroll goes to the children instead of the RecyclerView items.
Currently using:
new VerticalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(mRecyclerView), 1.8f, VerticalOverScrollBounceEffectDecorator.DEFAULT_TOUCH_DRAG_MOVE_RATIO_BCK, VerticalOverScrollBounceEffectDecorator.DEFAULT_DECELERATE_FACTOR);
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (9 by maintainers)
I’ve solved this issue, will post a new release asap.
Released version 1.0.4 - please give it a try!!!