feat(viewport): expand ZOOMFACTOR range to 500

This commit is contained in:
F4brizi committed 2026-10-01 18:49:23 -03:00
1 parent f08eb77b97
commit e131843826
7 files changed
+21 -10

No files matched your search

+1 -1
View File
@@ -492,7 +492,7 @@ impl Camera {
}
pub fn zoom(&mut self, delta: f32) {
self.distance = (self.distance * (1.0 - delta * 0.1)).max(0.001);
self.distance = (self.distance * 0.9f32.powf(delta)).max(0.001);
}
/// World-space offset from `target` to the point under `screen` on the