Skip to content

Commit

Permalink
Fix issue with zoom with mouse wheel jumping when switching to an ort…
Browse files Browse the repository at this point in the history
…ho camera because of missing camera.updateProjectionMatrix()
  • Loading branch information
vincentfretin committed Jun 5, 2024
1 parent 575c910 commit f79388d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/cameras.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ function setOrthoCamera(camera, dir, ratio) {
camera.bottom = info.bottom || -10;
camera.position.copy(info.position);
camera.rotation.copy(info.rotation);
camera.updateProjectionMatrix();
}

0 comments on commit f79388d

Please sign in to comment.