From c4dead2eee2d7a480c5765d6e6f83837a2a44771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 21 Nov 2021 23:27:30 +0100 Subject: [PATCH] Fix another mysterious GTK+ issue --- fastiv-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastiv-view.c b/fastiv-view.c index 5ecb85f..4efb8be 100644 --- a/fastiv-view.c +++ b/fastiv-view.c @@ -313,7 +313,9 @@ fastiv_view_scroll_event(GtkWidget *widget, GdkEventScroll *event) case GDK_SCROLL_DOWN: return set_scale(self, self->scale / SCALE_STEP); default: - return FALSE; + // For some reason, we can also get GDK_SCROLL_SMOOTH. + // Left/right are good to steal from GtkScrolledWindow for consistency. + return TRUE; } }