gtkgesturezoom: Don't filter hold events

Part-of: <!3454>
This commit is contained in:
José Expósito 2021-06-28 17:50:56 +02:00 committed by Carlos Garnacho
parent 3bfcc12ec0
commit a99a75827c

View File

@ -149,8 +149,9 @@ static gboolean
gtk_gesture_zoom_filter_event (GtkEventController *controller,
GdkEvent *event)
{
/* Let 2-finger touchpad pinch events go through */
if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_PINCH)
/* 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)
{
guint n_fingers;