From 56128e0574022b6a128755e07fb504772c400b26 Mon Sep 17 00:00:00 2001 From: Felipe Alves pipe-felipe Date: Sat, 22 Aug 2026 01:13:26 -0300 Subject: [PATCH] views/week-view: Fix inverted Ctrl+scroll zoom direction Ctrl+scrolling with a mouse wheel zoomed in the opposite direction than expected: scrolling up zoomed out and scrolling down zoomed in, which is inconsistent with other GNOME apps such as Loupe and Nautilus. Negate the scroll delta in both smooth (touchpad) and discrete (mouse wheel) scrolling cases, so scrolling up now zooms in. Fixes #1633 Part-of: --- src/gui/views/gcal-week-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/views/gcal-week-view.c b/src/gui/views/gcal-week-view.c index 33304889..4776aed2 100644 --- a/src/gui/views/gcal-week-view.c +++ b/src/gui/views/gcal-week-view.c @@ -304,13 +304,13 @@ on_scroll_controller_scroll_cb (GtkEventControllerScroll *controller, switch (gdk_scroll_event_get_direction (event)) { case GDK_SCROLL_SMOOTH: - scale = dy / 100.0 + 1.0; + scale = -dy / 100.0 + 1.0; discrete = FALSE; break; case GDK_SCROLL_UP: case GDK_SCROLL_DOWN: - scale = dy / 10.0 + 1.0; + scale = -dy / 10.0 + 1.0; discrete = TRUE; break;