mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Filter touch events if two-finger scrolling is enabled
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
796e0d4391
commit
e6032c3451
@@ -2607,9 +2607,10 @@ HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw)
|
||||
Bool restart_touches = FALSE;
|
||||
int i;
|
||||
|
||||
if (para->click_action[F3_CLICK1] || para.tap_action[F3_TAP])
|
||||
if (para->click_action[F3_CLICK1] || para->tap_action[F3_TAP])
|
||||
min_touches = 4;
|
||||
else if (para->click_action[F2_CLICK1] || para.tap_action[F2_TAP])
|
||||
else if (para->click_action[F2_CLICK1] || para->tap_action[F2_TAP] ||
|
||||
para->scroll_twofinger_vert || para->scroll_twofinger_horiz)
|
||||
min_touches = 3;
|
||||
|
||||
/* Count new number of active touches */
|
||||
|
||||
Reference in New Issue
Block a user