Skip to content

Commit e8f890f

Browse files
Johnetordofffelliott
authored andcommitted
Limit jsc3d zoom factor
1 parent 509cb4a commit e8f890f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mfr/extensions/jsc3d/static/js/jsc3d.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,10 @@ JSC3D.Viewer.prototype.render = function() {
14641464
if(this.scene.isEmpty())
14651465
return;
14661466

1467+
if(this.zoomFactor < .1){
1468+
this.zoomFactor = .1;
1469+
}
1470+
14671471
var aabb = this.scene.aabb;
14681472

14691473
// calculate transformation matrix

0 commit comments

Comments
 (0)