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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Diff
src/add-ons/input_server/devices/mouse/movement_maker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -362,7 +362,7 @@
}
}
if (event->buttons & kLeftButton) {
if (event->buttons || two_or_more_fingers(event)) {
fTapClicks = 0;
fTapdragStarted = false;
fTapStarted = false;