diff options
author | Joris | 2022-07-05 22:11:00 +0200 |
---|---|---|
committer | Joris | 2022-07-05 22:11:00 +0200 |
commit | 8c1ab4c5756ac43d52bc8773f5e72dde90f79e77 (patch) | |
tree | de0db8c859e4204c90ddaa762f4d743fab1dedb2 /src/main.ts | |
parent | 1d855b7a50b61650f7ddf40f604c788de1c9e914 (diff) |
WIP
Diffstat (limited to 'src/main.ts')
-rw-r--r-- | src/main.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts index 53bc487..c235929 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,3 +9,10 @@ function loop(timestamp: number) { } window.requestAnimationFrame(loop) + +window.onresize = () => Scene.resize( + scene, + { width: window.innerWidth, + height: window.innerHeight + } +) |