diff options
| author | Arne Dußin | 2020-11-02 00:53:18 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-02 00:53:18 +0100 |
| commit | 81b531aaec7ad12b138dbf1bd2c24d2bd4352024 (patch) | |
| tree | afbc9a7671a0b15e295ce9d65dc33b009f3cd174 /src/main.rs | |
| parent | a3513e6ba22a00899b6c63ea7ce768e2f9fcd462 (diff) | |
| download | graf_karto-81b531aaec7ad12b138dbf1bd2c24d2bd4352024.tar.gz graf_karto-81b531aaec7ad12b138dbf1bd2c24d2bd4352024.zip | |
Tether on zoom
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); |
