From 710a8ec8db8435227c924882522c137339288303 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Fri, 4 Jul 2025 22:50:00 +1200 Subject: Wake the input device when the mouse is scrolled This was omitted in error. --- src/devices/input_device.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/devices/input_device.rs b/src/devices/input_device.rs index 83e8039..d4e0cb0 100644 --- a/src/devices/input_device.rs +++ b/src/devices/input_device.rs @@ -185,11 +185,13 @@ impl InputDevice { pub fn on_horizontal_scroll(&mut self, delta: f32) { self.h_scroll += delta; self.h_scroll = self.h_scroll.clamp(-32768.0, 32767.0); + if self.h_scroll.abs() >= 1.0 { self.wake = true; } } pub fn on_vertical_scroll(&mut self, delta: f32) { self.v_scroll += delta; self.v_scroll = self.v_scroll.clamp(i16::MIN as f32, i16::MAX as f32); + if self.v_scroll.abs() >= 1.0 { self.wake = true; } } pub fn update_horizontal_scroll(&mut self) { -- cgit v1.2.3-70-g09d2