From f79388d0e322e523d9cc9e982b40681dcd943168 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Wed, 5 Jun 2024 16:58:32 +0200 Subject: [PATCH] Fix issue with zoom with mouse wheel jumping when switching to an ortho camera because of missing camera.updateProjectionMatrix() --- src/lib/cameras.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/cameras.js b/src/lib/cameras.js index acda47c9..063cad68 100644 --- a/src/lib/cameras.js +++ b/src/lib/cameras.js @@ -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(); }