aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts7
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
+ }
+)