From a9a0e2c02bdd6e9dfdff523705e7afcb47e82adb Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 10 Aug 2010 14:40:08 +0100 Subject: Filter abs events by default in grail-gesture Also connect the timeout for press with the timeout of tapping. Signed-off-by: Henrik Rydberg --- src/gestures-tapping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gestures-tapping.c') diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c index d8a580f..0deacf8 100644 --- a/src/gestures-tapping.c +++ b/src/gestures-tapping.c @@ -28,7 +28,6 @@ static const int TAP_END = 1; static const int TAP_CANCEL = 2; static const int TAP_MIN_GAP_MS = 25; -static const int TAP_MAX_GAP_MS = 300; static const int fm_mask = 0x03; @@ -66,7 +65,7 @@ int gru_tapping(struct grail *ge, } if (state->ntouch < 1 || state->ntouch > 5) state->status = TAP_CANCEL; - if (move->time - state->start > TAP_MAX_GAP_MS) + if (move->time - state->start > move->fm[FM_X].bar_ms) state->status = TAP_CANCEL; if (state->status == TAP_END && move->time - state->start < TAP_MIN_GAP_MS) -- cgit v1.2.3