summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-09-04 00:41:15 +0200
committerChristoph Brill <egore911@egore911.de>2008-09-07 11:29:53 +0200
commit9f0da9b3144a2561f6e555e6f08e15643cfda830 (patch)
tree61d1ae993d96771bd7a462e7afff855138b27bb3
parent89b6a9cd71f9e686c5be4da4523b86c6d7f160dd (diff)
Disentangle two-finger tap and two-finger scrolling
When two-finger-scrolling quickly and distinctly, the two-finger tapping gets activated, effectively selecting a portion of the selected text. The synaptics code already has logic to prevent taps from being registered when the fingers move; this patch simply removes what appears to be an unnecessary assumption that only single-finger clicks needs this functionality. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--src/synaptics.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index a5ca61c..fd71b86 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1128,8 +1128,7 @@ HandleTapProcessing(SynapticsPrivate *priv, struct SynapticsHwState *hw,
touch = finger && !priv->finger_state;
release = !finger && priv->finger_state;
- move = ((priv->tap_max_fingers <= 1) &&
- ((abs(hw->x - priv->touch_on.x) >= para->tap_move) ||
+ move = (((abs(hw->x - priv->touch_on.x) >= para->tap_move) ||
(abs(hw->y - priv->touch_on.y) >= para->tap_move)));
if (touch) {