diff --git a/src/platform/linux/x11/mod.rs b/src/platform/linux/x11/mod.rs index 4e71a522..66fee12a 100644 --- a/src/platform/linux/x11/mod.rs +++ b/src/platform/linux/x11/mod.rs @@ -413,7 +413,8 @@ impl EventsLoop { device_id: did, delta: match info.orientation { ScrollOrientation::Horizontal => LineDelta(delta as f32, 0.0), - ScrollOrientation::Vertical => LineDelta(0.0, delta as f32), + // X11 vertical scroll coordinates are opposite to winit's + ScrollOrientation::Vertical => LineDelta(0.0, -delta as f32), }, phase: TouchPhase::Moved, }});