[gtk+/gestures: 32/92] gesture: Only recognize gestures with as many interacting touches as those handled
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 32/92] gesture: Only recognize gestures with as many interacting touches as those handled
- Date: Tue, 8 Apr 2014 19:43:06 +0000 (UTC)
commit 43912403ad4d570c50255984764b0f35194465ea
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 21 18:13:41 2014 +0100
gesture: Only recognize gestures with as many interacting touches as those handled
If a gesture has denied sequences (so those are presumably handled above/below
the widget), it shouldn't attempt to handle extra touches, even if those end
up matching the expected number of touches.
gtk/gtkgesture.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index c24fc59..e4f9306 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -200,6 +200,7 @@ _gtk_gesture_check_recognized (GtkGesture *gesture,
_gtk_gesture_set_recognized (gesture, FALSE, sequence);
else if (!priv->recognized &&
current_n_points == priv->n_points &&
+ g_hash_table_size (priv->points) == priv->n_points &&
_gtk_gesture_do_check (gesture))
_gtk_gesture_set_recognized (gesture, TRUE, sequence);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]