From 4e9e4d494e094347e7617d39292cbbdd1c81eff1 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Jun 2010 22:57:38 +0200 Subject: Increase stability against thumb and edge touches Sliding a thumb along the upper edge of the pad results in spurious pointer motion. This patch increases the delays before moving close to the pad edges, and increase the relaxation time after a thumb detection, reducing the effect somewhat. Signed-off-by: Henrik Rydberg --- src/gestures.c | 2 +- src/memory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gestures.c b/src/gestures.c index 663f1a4..a5a17ca 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -25,7 +25,7 @@ #include "gestures.h" -static const int FINGER_THUMB_MS = 400; +static const int FINGER_THUMB_MS = 600; static const int BUTTON_HOLD_MS = 200; /** diff --git a/src/memory.c b/src/memory.c index 748aa07..cd88d7a 100644 --- a/src/memory.c +++ b/src/memory.c @@ -30,7 +30,7 @@ /* timer for cursor stability on finger touch/release */ static const int FINGER_ATTACK_MS = 40; static const int FINGER_DECAY_MS = 120; -static const int FINGER_CORNER_MS = 150; +static const int FINGER_CORNER_MS = 300; static inline int dxval(const struct FingerState *a, const struct FingerState *b) -- cgit v1.2.3