-
Notifications
You must be signed in to change notification settings - Fork 48
Can not deselect immediately after a long press #6
Copy link
Copy link
Open
Description
Hi, thanks for the much useful library!
Here's how to recreate a bug I spotted. (See the Current behavior gif below.)
- Start the demo app.
- Long press any tile (for example tile 0 hereafter) to switch to dragselect mode.
Important: do not perform any drag gesture, just long press tile 0 till it becomes red. - Without touching anything else click on tile 0 again.
This click should deselect tile 0 (make it white again) but right now it does not happen. - If tile 0 is clicked on again (two times including step 3) now it is deselected.
Desired behavior should be being able to deselect at the step 3 right?
I think bug is in the following line:
Line 200 in 9d8b02e
| break; |
break; needs to be changed to return false;
Right now the function onInterceptTouchEvent will return true in the case MotionEvent.ACTION_DOWN: and the user does not receive an onClick event for the ViewHolder of tile 0 .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

