summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-15 22:57:38 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 02:33:23 +0200
commit4e9e4d494e094347e7617d39292cbbdd1c81eff1 (patch)
tree8903bac4535b22b53a756d194feed547ce46de13 /src
parent354959d909688ab323695e8a2e641554357ef5c6 (diff)
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 <rydberg@euromail.se>
Diffstat (limited to 'src')
-rw-r--r--src/gestures.c2
-rw-r--r--src/memory.c2
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)