gtkgesturerotate: Don't filter hold events

Part-of: <!3454>
This commit is contained in:
José Expósito 2021-06-28 17:51:13 +02:00 committed by Carlos Garnacho
parent a99a75827c
commit 34133ec1e8

View File

@ -172,8 +172,9 @@ static gboolean
gtk_gesture_rotate_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;