diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 9ba63e0..d44131b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,9 +27,9 @@ fn main() { // Handle scrolling of the canvas if rl.get_mouse_wheel_move() > 0 { - transform.try_zoom_in(); + transform.try_zoom_in(rl.get_mouse_position().into()); } else if rl.get_mouse_wheel_move() < 0 { - transform.try_zoom_out(); + transform.try_zoom_out(rl.get_mouse_position().into()); } editor.update(&rl, &transform); |
