Merge PR #1581 from F4brizi/feature/increase-zoomfactor-limit: expand ZOOMFACTOR range to 500

This commit is contained in:
Hakan Seven committed 2026-10-02 09:58:36 +03:00
commit f44d03f472
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