[PATCH synaptics] Stop scrolling if not exactly two fingers on touchpad.

Daniel Kurtz djkurtz at google.com
Mon Feb 14 06:08:41 PST 2011


X.Org Bug 34257 <http://bugs.freedesktop.org/show_bug.cgi?id=34257>

Signed-off-by: Daniel Kurtz <djkurtz at google.com>
---
 src/synaptics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index 783bd64..6e826f1 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1960,7 +1960,7 @@ HandleScrolling(SynapticsPrivate *priv, struct SynapticsHwState *hw,
 	    priv->circ_scroll_on = FALSE;
 	}
 
-	if (!finger || hw->numFingers < 2) {
+	if (!finger || hw->numFingers != 2) {
 	    if (priv->vert_scroll_twofinger_on) {
 		DBG(7, "vert two-finger scroll off\n");
 		priv->vert_scroll_twofinger_on = FALSE;
-- 
1.7.3.1



More information about the xorg-devel mailing list