views/dazzling-month-view: Tentatively support wheel scroll

Add a dedicated discrete scroll event controller, and ensure
each event controller handles the right types of events.
This commit is contained in:
Georges Basile Stavracas Neto
2023-08-11 15:13:44 -03:00
parent 3f0b1e57de
commit 3a36f75877
2 changed files with 57 additions and 2 deletions
+7 -1
View File
@@ -5,7 +5,6 @@
<child>
<object class="GtkEventControllerScroll">
<!-- TODO: Kinetic -->
<property name="flags">vertical|kinetic</property>
<signal name="scroll-begin" handler="on_scroll_controller_scroll_begin_cb" object="GcalDazzlingMonthView" swapped="no" />
<signal name="scroll" handler="on_scroll_controller_scroll_cb" object="GcalDazzlingMonthView" swapped="no" />
@@ -14,6 +13,13 @@
</object>
</child>
<child>
<object class="GtkEventControllerScroll">
<property name="flags">vertical|discrete</property>
<signal name="scroll" handler="on_discrete_scroll_controller_scroll_cb" object="GcalDazzlingMonthView" swapped="no" />
</object>
</child>
<!-- Header -->
<child type="header">
<object class="GtkBox">