mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Reverse horizontal scroll direction (#2105)
This commit is contained in:
@@ -1208,7 +1208,7 @@ unsafe fn public_window_callback_inner<T: 'static>(
|
||||
|
||||
let value = (wparam >> 16) as i16;
|
||||
let value = value as i32;
|
||||
let value = value as f32 / WHEEL_DELTA as f32;
|
||||
let value = -value as f32 / WHEEL_DELTA as f32; // NOTE: inverted! See https://github.com/rust-windowing/winit/pull/2105/
|
||||
|
||||
update_modifiers(window, userdata);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user