From 1f44a7494707747140840c94de0dbda74bd79b61 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Apr 2024 11:36:54 +1000 Subject: [PATCH] Fix inverted table wheel on wayland The tablet wheel direction matches the mouse wheel which also needed to be inverted. --- intern/ghost/intern/GHOST_SystemWayland.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 9cffb97d6a9..36ead30206c 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -4673,7 +4673,7 @@ static void tablet_tool_handle_frame(void *data, } case GWL_TabletTool_EventTypes::Wheel: { seat->system->pushEvent_maybe_pending( - new GHOST_EventWheel(event_ms, win, tablet_tool->frame_pending.wheel.clicks)); + new GHOST_EventWheel(event_ms, win, -tablet_tool->frame_pending.wheel.clicks)); break; } }