commit 3a12fb7e99d9b30822dc8090e8d54d923668437e
parent debd0097a3737995c1ef0145660a221b7f155e88
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Thu, 4 Jul 2024 18:35:16 -0300
fix camera aspect ration not resizing properly sometimes
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -95,6 +95,7 @@ function prevCamera() {
blocker.style.display = 'block';
instructions.style.display = 'flex';
}
+ onResize();
}
function nextCamera() {
@@ -117,6 +118,7 @@ function nextCamera() {
blocker.style.display = 'block';
instructions.style.display = 'flex';
}
+ onResize();
}
const blocker = document.getElementById( 'blocker' );