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 8449f8e commit 21f7410Copy full SHA for 21f7410
src/controls/OrbitControls.ts
@@ -362,9 +362,12 @@ class OrbitControls extends EventDispatcher {
362
}
363
364
} else if (scope.object instanceof OrthographicCamera && scope.object.isOrthographicCamera) {
365
- scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom / scale))
366
- scope.object.updateProjectionMatrix()
367
- zoomChanged = true
+ zoomChanged = scale !== 1
+
+ if (zoomChanged) {
368
+ scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom / scale))
369
+ scope.object.updateProjectionMatrix()
370
+ }
371
372
373
scale = 1
0 commit comments