some corrections...

This commit is contained in:
Hyunchul Kim 2021-09-12 04:23:16 +09:00
parent 856f78a4c1
commit f26f176454

View file

@ -133,7 +133,11 @@ setInterval(()=>{
maxY = bodies.sort((a, b) => (b.position.y - a.position.y))[0].position.y;
if (maxY < getDocumentHeight()) return;
render.canvas.height = Math.max(window.innerHeight, maxY + 1000);
if (window.sessionStorage.getItem("isZoom") == "true") {
render.canvas.height = Math.max(window.innerHeight, maxY * 2);
} else {
render.canvas.height = Math.max(window.innerHeight, maxY + 600);
}
document.querySelector('#authors').style.height = render.canvas.height;
if(leftWall.position.y+window.innerHeight/2 <getDocumentHeight()){