Skip to content

Commit

Permalink
OrbitControls: Removed unused zoomChanged variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 16, 2023
1 parent a7c9a20 commit 0a97813
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/jsm/controls/OrbitControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ class OrbitControls extends EventDispatcher {

let scale = 1;
const panOffset = new Vector3();
let zoomChanged = false;

const rotateStart = new Vector2();
const rotateEnd = new Vector2();
Expand Down Expand Up @@ -455,7 +454,6 @@ class OrbitControls extends EventDispatcher {

scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom * dollyScale ) );
scope.object.updateProjectionMatrix();
zoomChanged = true;

} else {

Expand All @@ -476,7 +474,6 @@ class OrbitControls extends EventDispatcher {

scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom / dollyScale ) );
scope.object.updateProjectionMatrix();
zoomChanged = true;

} else {

Expand Down

0 comments on commit 0a97813

Please sign in to comment.