Clean up and polish some code from the previous commit (#255)

This commit is contained in:
Keavon Chambers
2021-07-13 00:52:45 -07:00
committed by GitHub
parent 39e6893630
commit 7ae91e8330
9 changed files with 88 additions and 79 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
pub const PLUS_KEY_MULTIPLIER: f64 = 1.25;
pub const MINUS_KEY_MULTIPLIER: f64 = 0.8;
pub const PLUS_KEY_ZOOM_MULTIPLIER: f64 = 1.25;
pub const MINUS_KEY_ZOOM_MULTIPLIER: f64 = 0.8;
pub const VIEWPORT_ZOOM_SCALE_MIN: f64 = 0.000_001;
pub const VIEWPORT_ZOOM_SCALE_MAX: f64 = 1_000_000.;
pub const WHEEL_ZOOM_DIVISOR: f64 = 500.;
pub const MOUSE_ZOOM_DIVISOR: f64 = 400.;