mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +00:00
Make sure all examples resize when the window is resized (#155)
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
function handleResize() {
|
||||
const width = window.innerWidth;
|
||||
const height = window.innerHeight;
|
||||
renderer.setSize(width, height, false);
|
||||
renderer.setSize(width, height);
|
||||
camera.aspect = width / height;
|
||||
camera.updateProjectionMatrix();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user