Skip to content

Commit

Permalink
fix: reverse sctk scroll direction
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Oct 24, 2024
1 parent d836b45 commit a92abc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions winit/src/platform_specific/wayland/handlers/seat/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
},
Expand Down

0 comments on commit a92abc8

Please sign in to comment.