forked from AuroraMiddleware/gtk
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:
parent
da90d37b42
commit
ebd1840802
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user