mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Disable scrolling when beginning a clickpad press
There really isn't a point to scrolling while a clickpad is pressed. In particular, the clickpad button areas and the horizontal edge scrolling areas overlap, so horizontal edge scrolling must be disabled. Also, performing two finger scrolling while a third finger presses the button would require us to inhibit touch events until four touches are present. That is enough reason to disable two finger scrolling as well. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
de75ad6b07
commit
a6361e2d2c
@@ -1877,6 +1877,12 @@ HandleTapProcessing(SynapticsPrivate *priv, struct SynapticsHwState *hw,
|
||||
}
|
||||
break;
|
||||
case TS_CLICKPAD_MOVE:
|
||||
/* Disable scrolling once a button is pressed on a clickpad */
|
||||
priv->vert_scroll_edge_on = FALSE;
|
||||
priv->horiz_scroll_edge_on = FALSE;
|
||||
priv->vert_scroll_twofinger_on = FALSE;
|
||||
priv->horiz_scroll_twofinger_on = FALSE;
|
||||
|
||||
/* Assume one touch is only for holding the clickpad button down */
|
||||
if (hw->numFingers > 1)
|
||||
hw->numFingers--;
|
||||
|
||||
Reference in New Issue
Block a user