forked from AuroraMiddleware/gtk
gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE
There are GtkGestureSingle subclasses that can be made to handle multiple fingers (GtkGestureSingle is a subclass of GtkGesture, and not the opposite, after all). And GtkGestureSwipe already tries to handle GDK_TOUCHPAD_SWIPE events, except this event handler silently ignores those. Falling back to the GtkGesture generic handler which already handles touchpad gesture events fixes this.
This commit is contained in:
parent
dc511a38d0
commit
ed34be8bb3
@ -193,6 +193,7 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
|
||||
break;
|
||||
case GDK_TOUCH_CANCEL:
|
||||
case GDK_GRAB_BROKEN:
|
||||
case GDK_TOUCHPAD_SWIPE:
|
||||
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller,
|
||||
event);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user