From d5f810a0d3e0013a76136750eaff825ceec099a2 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 5 Aug 2010 14:12:33 +0200 Subject: tapping: Cancel multi-finger taps when moving Cancel multi-finger taps when multi move is active, to avoid accidental tapping during quick gestures. Signed-off-by: Henrik Rydberg --- src/gestures-tapping.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c index 763bc43..cc0e685 100644 --- a/src/gestures-tapping.c +++ b/src/gestures-tapping.c @@ -77,6 +77,8 @@ int gru_tapping(struct grail *ge, if (state->status == TAP_END && move->time - state->start < TAP_MIN_GAP_MS) state->status = TAP_CANCEL; + if (move->x.active || move->y.active) + state->status = TAP_CANCEL; if (state->status == TAP_CANCEL) { if (state->active) { gin_gid_discard(ge, state->gid); -- cgit v1.2.3