From 6e1799669113bda2858362bd9c74b75b4ded02a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sun, 7 Apr 2024 20:04:26 +0200 Subject: [PATCH] clapper-app: Fix wrong direction of touchpad scrolling We should not invert axis. Otherwise its opposite compared to the same gesture performed on GtkScale. --- src/bin/clapper-app/clapper-app-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/clapper-app/clapper-app-window.c b/src/bin/clapper-app/clapper-app-window.c index d1c6f4f4..6441f94e 100644 --- a/src/bin/clapper-app/clapper-app-window.c +++ b/src/bin/clapper-app/clapper-app-window.c @@ -482,8 +482,8 @@ scroll_cb (GtkEventControllerScroll *scroll, switch (gdk_device_get_source (device)) { case GDK_SOURCE_TOUCHPAD: case GDK_SOURCE_TOUCHSCREEN: - dx *= -0.4; - dy *= -0.4; + dx *= 0.4; + dy *= 0.4; break; default: break;