Compare commits
1 commit
master
...
fix-scroll
Author | SHA1 | Date | |
---|---|---|---|
![]() |
be44c71e31 |
1 changed files with 5 additions and 0 deletions
|
@ -177,11 +177,16 @@ pub fn input_to_egui(
|
|||
vec2(delta.x as f32, delta.y as f32) / pixels_per_point
|
||||
}
|
||||
};
|
||||
|
||||
// Various hacks for https://github.com/emilk/egui/issues/356
|
||||
if cfg!(target_os = "macos") {
|
||||
// This is still buggy in winit despite
|
||||
// https://github.com/rust-windowing/winit/issues/1695 being closed
|
||||
delta.x *= -1.0;
|
||||
}
|
||||
if cfg!(target_os = "linux") {
|
||||
delta.y *= -1.0;
|
||||
}
|
||||
|
||||
if input_state.raw.modifiers.ctrl {
|
||||
// Treat as zoom instead:
|
||||
|
|
Loading…
Reference in a new issue