win32: account for mouse wheel speed setting
Also adds a method to toggle this behavior during runtime.
This commit is contained in:
parent
b13b39aa0b
commit
317d62fb93
5 changed files with 96 additions and 18 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue