From 288dc1882c837b3116582203f78b26ffe0c41316 Mon Sep 17 00:00:00 2001 From: shadow cat Date: Tue, 18 Nov 2025 14:32:46 -0500 Subject: [PATCH] horizontal scrolling with shift --- src/bin/client/input.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/client/input.rs b/src/bin/client/input.rs index cb06829..7512677 100644 --- a/src/bin/client/input.rs +++ b/src/bin/client/input.rs @@ -33,10 +33,14 @@ impl Input { } } WindowEvent::MouseWheel { delta, .. } => { - let delta = match *delta { + let mut delta = match *delta { MouseScrollDelta::LineDelta(x, y) => Vec2::new(x, y), MouseScrollDelta::PixelDelta(pos) => Vec2::new(pos.x as f32, pos.y as f32), }; + if delta.x == 0.0 && self.modifiers.shift { + delta.x = delta.y; + delta.y = 0.0; + } self.cursor.scroll_delta = delta; } WindowEvent::CursorLeft { .. } => {