diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-07 16:47:25 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-07 16:47:25 +0200 |
| commit | 1681e90809ae248299bc5be5a9af12e871544a7d (patch) | |
| tree | 3a3b57747350b901a6a1eb3b954dbf60747c3957 /src/gestures-tapping.c | |
| parent | d148161bfd304ddb155d99fb1eda7b270da8054a (diff) | |
treat one-finger moves in move model and simplify tapping logic
Diffstat (limited to 'src/gestures-tapping.c')
| -rw-r--r-- | src/gestures-tapping.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c index d78e775..a5357e4 100644 --- a/src/gestures-tapping.c +++ b/src/gestures-tapping.c | |||
| @@ -49,12 +49,6 @@ int gru_tapping(struct grail *ge, | |||
| 49 | gin_gid_discard(ge, state->gid); | 49 | gin_gid_discard(ge, state->gid); |
| 50 | state->active = 0; | 50 | state->active = 0; |
| 51 | } | 51 | } |
| 52 | state->x = move->x.val; | ||
| 53 | state->y = move->y.val; | ||
| 54 | } else if (state->ntouch == 1) { | ||
| 55 | if (fabs(move->x.val - state->x) > move->y.bar || | ||
| 56 | fabs(move->y.val - state->y) > move->y.bar) | ||
| 57 | state->status = TAP_CANCEL; | ||
| 58 | } | 52 | } |
| 59 | if (!state->active) { | 53 | if (!state->active) { |
| 60 | int type = GRAIL_TYPE_TAP1 + state->ntouch - 1; | 54 | int type = GRAIL_TYPE_TAP1 + state->ntouch - 1; |
