From a92abc845cea46ae5133648e12283a0782481de4 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 23 Oct 2024 20:33:12 -0400 Subject: [PATCH] fix: reverse sctk scroll direction --- .../platform_specific/wayland/handlers/seat/pointer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winit/src/platform_specific/wayland/handlers/seat/pointer.rs b/winit/src/platform_specific/wayland/handlers/seat/pointer.rs index 798ecbe74b..a9bca881cb 100644 --- a/winit/src/platform_specific/wayland/handlers/seat/pointer.rs +++ b/winit/src/platform_specific/wayland/handlers/seat/pointer.rs @@ -117,14 +117,14 @@ impl PointerHandler for SctkState { device_id: Default::default(), delta: if horizontal.discrete > 0 { MouseScrollDelta::LineDelta( - horizontal.discrete as f32, - vertical.discrete as f32, + -horizontal.discrete as f32, + -vertical.discrete as f32, ) } else { MouseScrollDelta::PixelDelta( PhysicalPosition::new( - horizontal.absolute, - vertical.absolute, + -horizontal.absolute, + -vertical.absolute, ), ) },