From ac87b05dcb57947a0fbc797155a4f455b575a54a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Dec 2022 21:11:53 +0100 Subject: [PATCH] Fix scroll events direction on Wayland. --- profiler/src/BackendWayland.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp index cadc04eb..d375100f 100644 --- a/profiler/src/BackendWayland.cpp +++ b/profiler/src/BackendWayland.cpp @@ -103,11 +103,11 @@ static void PointerAxis( void*, struct wl_pointer* pointer, uint32_t time, uint3 s_wheel = true; if( axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL ) { - s_wheelAxisX += value; + s_wheelAxisX -= value; } else { - s_wheelAxisY += value; + s_wheelAxisY -= value; } }