Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Sep 9, 2024
1 parent d769abe commit 4b64a8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@

onResize();
animate();

glApp.properties.cameraOffsetX = (348 + 10) / window.innerWidth; // 348 is sidebar width with some padding

}

function onResize() {
glApp.properties.cameraOffsetX = (348 + 10) / window.innerWidth; // 348 is sidebar width with some padding
glApp.setSize(window.innerWidth, window.innerHeight);

}
Expand Down

0 comments on commit 4b64a8c

Please sign in to comment.