Not registering onClick in RecyclerViewSee original GitHub issue
VerticalOverScrollBounceEffectDecorator on a RecyclerView causes the first touch over the overscroll to be ignored.
- 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.
new VerticalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(mRecyclerView), 1.8f, VerticalOverScrollBounceEffectDecorator.DEFAULT_TOUCH_DRAG_MOVE_RATIO_BCK, VerticalOverScrollBounceEffectDecorator.DEFAULT_DECELERATE_FACTOR);
- Created 7 years ago
- Comments:17 (9 by maintainers)