js: Fix calendar scroll

Update to Clutter.Event getter methods in Clutter.Actor vfuncs
as the old way no longer works

Related to https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2872

Signed-off-by: Hollow Man <hollowman@opensuse.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2946>
This commit is contained in:
Hollow Man 2023-09-09 14:05:27 +02:00
parent 8ae5d7d97d
commit 8a5a25e6d3

View File

@ -552,8 +552,8 @@ export const Calendar = GObject.registerClass({
this._firstDayIndex = this.get_n_children();
}
vfunc_scroll_event(scrollEvent) {
switch (scrollEvent.direction) {
vfunc_scroll_event(event) {
switch (event.get_scroll_direction()) {
case Clutter.ScrollDirection.UP:
case Clutter.ScrollDirection.LEFT:
this._onPrevMonthButtonClicked();