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() (#560)
  • Loading branch information
vincentfretin authored Jun 5, 2024
1 parent 6082fb7 commit 1330586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/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 || -40;
camera.position.copy(info.position);
camera.rotation.copy(info.rotation);
camera.updateProjectionMatrix();
}

0 comments on commit 1330586

Please sign in to comment.