Skip to content

Commit

Permalink
fix action cancel cause click event
Browse files Browse the repository at this point in the history
  • Loading branch information
ToDou committed Nov 8, 2016
1 parent 56b56c5 commit 56f017a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent even
}
} else if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) {
mActivePointerId = ACTIVE_POINTER_ID_NONE;
if (mClick) {
if (mClick && action == MotionEvent.ACTION_UP) {
doChildClickEvent(event.getRawX(), event.getRawY());
}
select(null, ACTION_STATE_IDLE);
Expand Down

0 comments on commit 56f017a

Please sign in to comment.