forked from 1b-agent/opencadstudio-upstream
feat(viewport): expand ZOOMFACTOR range to 500
This commit is contained in:
1 parent
f08eb77b97
commit
e131843826
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