scrollcontroller: Set scroll event mask on scroll controller

This ensures adding the controller to a widget will end up with
the expected event masks in the widget default window.
This commit is contained in:
Carlos Garnacho 2019-10-21 17:09:17 +02:00
parent da90d37b42
commit ebd1840802

View File

@ -455,6 +455,9 @@ gtk_event_controller_scroll_init (GtkEventControllerScroll *scroll)
{
scroll->scroll_history = g_array_new (FALSE, FALSE,
sizeof (ScrollHistoryElem));
gtk_event_controller_set_event_mask (GTK_EVENT_CONTROLLER (scroll),
GDK_SCROLL_MASK |
GDK_SMOOTH_SCROLL_MASK);
}
/**