mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Prevent two-finger taps from being ignored
When two fingers are used, the coordinates of only one of them is taken into account. This can lead to sudden variations of the absolute coordinates when two-fingers taps are performed if the finger considered changes. Take into account coordinates variations to prevent unwanted taps only if the number of fingers doesn't change. 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
a36edf8307
commit
7d0ff39519
@@ -1960,8 +1960,9 @@ HandleTapProcessing(SynapticsPrivate * priv, struct SynapticsHwState *hw,
|
||||
(priv->tap_max_fingers <=
|
||||
((priv->horiz_scroll_twofinger_on ||
|
||||
priv->vert_scroll_twofinger_on) ? 2 : 1)) &&
|
||||
((abs(hw->x - priv->touch_on.x) >= para->tap_move) ||
|
||||
(abs(hw->y - priv->touch_on.y) >= para->tap_move)));
|
||||
(priv->prevFingers == hw->numFingers &&
|
||||
((abs(hw->x - priv->touch_on.x) >= para->tap_move) ||
|
||||
(abs(hw->y - priv->touch_on.y) >= para->tap_move))));
|
||||
press = (hw->left || hw->right || hw->middle);
|
||||
|
||||
if (touch) {
|
||||
|
||||
Reference in New Issue
Block a user