[gtk+/gestures: 30/92] gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 30/92] gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
- Date: Tue, 8 Apr 2014 19:42:56 +0000 (UTC)
commit 273e382bcbb1baee66e180053cb11b8a734a2388
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 21 17:47:06 2014 +0100
gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
Gestures should always receive one of such events in order to be activated,
and the propagation mechanism will ensure they do so if the original event
was caught up the widget hierarchy by another gesture that is now declining
the sequence.
gtk/gtkgesture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index d7118f1..e1ba100 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -402,7 +402,7 @@ gtk_gesture_handle_event (GtkEventController *controller,
/* Fall through */
case GDK_TOUCH_UPDATE:
- if (_gtk_gesture_update_point (gesture, event, TRUE) &&
+ if (_gtk_gesture_update_point (gesture, event, FALSE) &&
_gtk_gesture_check_recognized (gesture, sequence))
g_signal_emit (gesture, signals[UPDATE], 0, sequence);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]