summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkgesturezoom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index 9d6116bce1..e60ea3ace8 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -150,8 +150,7 @@ gtk_gesture_zoom_filter_event (GtkEventController *controller,
GdkEvent *event)
{
/* Let 2-finger touchpad pinch and hold events go through */
- if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_PINCH ||
- gdk_event_get_event_type (event) == GDK_TOUCHPAD_HOLD)
+ if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_PINCH)
{
guint n_fingers;
@@ -162,6 +161,8 @@ gtk_gesture_zoom_filter_event (GtkEventController *controller,
else
return TRUE;
}
+ else if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_HOLD)
+ return TRUE;
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_zoom_parent_class)->filter_event (controller, event);
}