summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-05-06 16:58:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-05-10 11:11:18 +1000
commite579bab2f71569ab07d6b6fd36360a81fac48ad8 (patch)
tree2ee717a75c0b71df0b3f2c72807182aa70b1ea32
parenta1aa196a53a9061131bcdaeac3743c1f8149ed5d (diff)
Change condition the finger requirement obvious.
The need for a finger down is for all conditions, move it to the front of the condition to make it more obvious. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/synaptics.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 78eb03f..5780be3 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1417,9 +1417,10 @@ HandleTapProcessing(SynapticsPrivate *priv, struct SynapticsHwState *hw,
touch = finger && !priv->finger_state;
release = !finger && priv->finger_state;
- move = ((priv->tap_max_fingers <= ((priv->horiz_scroll_twofinger_on || priv->vert_scroll_twofinger_on)? 2 : 1)) &&
+ move = (finger &&
+ (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)) && finger);
+ (abs(hw->y - priv->touch_on.y) >= para->tap_move)));
if (touch) {
priv->touch_on.x = hw->x;