We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303dfc9 commit 4960d15Copy full SHA for 4960d15
examples/jsm/controls/OrbitControls.js
@@ -373,10 +373,15 @@ class OrbitControls extends EventDispatcher {
373
}
374
375
} else if ( scope.object.isOrthographicCamera ) {
376
+
377
+ zoomChanged = scale !== 1;
378
- scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom / scale ) );
- scope.object.updateProjectionMatrix();
379
- zoomChanged = true;
+ if ( zoomChanged ) {
380
381
+ scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom / scale ) );
382
+ scope.object.updateProjectionMatrix();
383
384
+ }
385
386
387
0 commit comments