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.
This commit is contained in:
Carlos Garnacho 2014-03-21 17:47:06 +01:00
parent d89e810bd9
commit 2285157c7d

View File

@ -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;