forked from 1b-agent/opencadstudio-upstream
Merge PR #1581 from F4brizi/feature/increase-zoomfactor-limit: expand ZOOMFACTOR range to 500
This commit is contained in:
commit
f44d03f472
7 files changed
+21
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user