minor change

This commit is contained in:
CJSatnarine
2025-03-14 15:42:22 -04:00
parent 15fd3615f8
commit 955979513e
3 changed files with 15 additions and 12 deletions

View File

@@ -18,7 +18,10 @@ renderer.setAnimationLoop(animate);
document.body.appendChild(renderer.domElement);
// Resizing the camera position based on window width.
if (window.innerWidth <= 650) {
if (window.innerWidth <= 400) {
camera.position.z = 6.5;
}
if (window.innerWidth > 400 && window.innerWidth <= 650) {
camera.position.z = 5.5;
}
else if (window.innerWidth > 650 && window.innerWidth <= 915) {