diff options
| -rw-r--r-- | src/window_manager.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/window_manager.rs b/src/window_manager.rs index 9322adb..a5d2038 100644 --- a/src/window_manager.rs +++ b/src/window_manager.rs @@ -64,12 +64,12 @@ impl WindowManager {                              MouseWheel {delta, ..} => match delta {                                  MouseScrollDelta::LineDelta(x, y) => { -                                    let (x, y) = (x as f64, y as f64); +                                    let (x, y) = (-x as f64, -y as f64);                                      if x != 0.0 {window.controller.on_line_scroll_horizontal(x)}                                      if y != 0.0 {window.controller.on_line_scroll_vertical(y)}                                  }                                  MouseScrollDelta::PixelDelta(point) => { -                                    let (x, y) = (point.x, point.y); +                                    let (x, y) = (-point.x, -point.y);                                      if x != 0.0 {window.controller.on_pixel_scroll_horizontal(x)}                                      if y != 0.0 {window.controller.on_pixel_scroll_vertical(y)}                                  } | 
