diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-09-09 20:59:35 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-09-09 21:05:11 +0200 |
| commit | 52aeefd3f462955063faae58f14097a7be88a558 (patch) | |
| tree | d10505f3ba0bce75382dd5a19fac416cd2f2f24a /src | |
| parent | 9bdd12a8046f33a6d190bb33371eb30d3ee59062 (diff) | |
Discard tapping even when there are zero events between down and up
The current logic assumes there will be at least one frame with
between touch up and touch down or the tap will not be properly
timed out. Fixed with this patch.
Reported-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/gestures-tapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c index fe7b7fe..b2acae8 100644 --- a/src/gestures-tapping.c +++ b/src/gestures-tapping.c | |||
| @@ -67,7 +67,7 @@ int gru_tapping(struct grail *ge, | |||
| 67 | int x = state->prop[GRAIL_PROP_TAP_X]; | 67 | int x = state->prop[GRAIL_PROP_TAP_X]; |
| 68 | int y = state->prop[GRAIL_PROP_TAP_Y]; | 68 | int y = state->prop[GRAIL_PROP_TAP_Y]; |
| 69 | int t = move->time - state->start; | 69 | int t = move->time - state->start; |
| 70 | if (t < TAP_MIN_GAP_MS) { | 70 | if (t < TAP_MIN_GAP_MS || t > move->fm[FM_X].bar_ms) { |
| 71 | gin_gid_discard(ge, state->gid); | 71 | gin_gid_discard(ge, state->gid); |
| 72 | state->ntouch = move->ntouch; | 72 | state->ntouch = move->ntouch; |
| 73 | state->active = 0; | 73 | state->active = 0; |
