Browse Source

Reverse horizontal scrolling on windows (#966)

* Reverse horizontal scrolling on windows

* Add link to winit issue

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
pull/990/head
Aevyrie 3 years ago
committed by GitHub
parent
commit
c69fe941af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      egui-winit/src/lib.rs

3
egui-winit/src/lib.rs

@ -458,6 +458,9 @@ impl State {
// https://github.com/rust-windowing/winit/issues/1695 being closed
delta.x *= -1.0;
}
if cfg!(target_os = "windows") {
delta.x *= -1.0; // until https://github.com/rust-windowing/winit/pull/2101 is merged
}
if self.egui_input.modifiers.ctrl || self.egui_input.modifiers.command {
// Treat as zoom instead:

Loading…
Cancel
Save