win32: account for mouse wheel speed setting

Also adds a method to toggle this behavior during runtime.
This commit is contained in:
Tony 2025-08-23 20:38:56 +08:00 committed by GitHub
parent b13b39aa0b
commit 317d62fb93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 96 additions and 18 deletions

View file

@ -60,6 +60,8 @@ pub(crate) struct WindowState {
pub dragging: bool,
pub skip_taskbar: bool,
pub use_system_wheel_speed: bool,
}
#[derive(Clone)]
@ -187,6 +189,8 @@ impl WindowState {
dragging: false,
skip_taskbar: false,
use_system_wheel_speed: true,
}
}