From 1681e90809ae248299bc5be5a9af12e871544a7d Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 7 Aug 2010 16:47:25 +0200 Subject: treat one-finger moves in move model and simplify tapping logic --- src/gestures-tapping.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/gestures-tapping.c') 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, gin_gid_discard(ge, state->gid); state->active = 0; } - state->x = move->x.val; - state->y = move->y.val; - } else if (state->ntouch == 1) { - if (fabs(move->x.val - state->x) > move->y.bar || - fabs(move->y.val - state->y) > move->y.bar) - state->status = TAP_CANCEL; } if (!state->active) { int type = GRAIL_TYPE_TAP1 + state->ntouch - 1; -- cgit v1.2.3