mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gtkgesturezoom: Don't filter hold events
Part-of: <!3454>
This commit is contained in:
parent
3bfcc12ec0
commit
a99a75827c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user