input mouse mm: Reset tap statuses on any button presss or on more than two fingers
This fixes incorrect fast double taps issuing click and other misbehaviours when on two-finger or more-than-two-finger events happened at the same time. Apart from that, it fixed incorrect tap statuses checking for all change of buttons instead of only from kLeftButton. The latest is commented to easily find each tap related button status changes and checks retated to tap handling. Clean up - Removal of kLeftButton check that was in place from previous as a condition for tap related statuses. Now checking for whatever button. Change-Id: Ied6a829022cd4e8601a7432fdfc71b08446a642d Reviewed-on: https://review.haiku-os.org/c/haiku/+/9916 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
cd5774201a
commit
e2685c735f
@@ -362,7 +362,7 @@ TouchpadMovement::EventToMovement(const touchpad_movement* event, mouse_movement
|
||||
}
|
||||
}
|
||||
|
||||
if (event->buttons & kLeftButton) {
|
||||
if (event->buttons || two_or_more_fingers(event)) {
|
||||
fTapClicks = 0;
|
||||
fTapdragStarted = false;
|
||||
fTapStarted = false;
|
||||
|
||||
Reference in New Issue
Block a user