From: Matt Mayfield Date: Sun, 14 Jul 2019 17:50:14 +0000 (-0500) Subject: touchpad: don't detect speed-based thumbs if there's already a thumb X-Git-Tag: 1.13.901~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35fd6e6c4e46940e8e2322afbb078675dc710b80;p=platform%2Fupstream%2Flibinput.git touchpad: don't detect speed-based thumbs if there's already a thumb --- diff --git a/src/evdev-mt-touchpad-thumb.c b/src/evdev-mt-touchpad-thumb.c index 5b0cf96..e62c78c 100644 --- a/src/evdev-mt-touchpad-thumb.c +++ b/src/evdev-mt-touchpad-thumb.c @@ -314,11 +314,12 @@ tp_thumb_update_multifinger(struct tp_dispatch *tp) distance.y = abs(first->point.y - second->point.y); mm = evdev_device_unit_delta_to_mm(tp->device, &distance); - /* Speed-based thumb detection: if an existing touch is moving, and + /* Speed-based thumb detection: if an existing finger is moving, and * a new touch arrives, mark it as a thumb if it doesn't qualify as a * 2-finger scroll. */ if (newest && + tp->thumb.state == THUMB_STATE_FINGER && tp->nfingers_down == 2 && speed_exceeded_count > 5 && (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_2FG ||