some corrections...
This commit is contained in:
parent
856f78a4c1
commit
f26f176454
1 changed files with 5 additions and 1 deletions
|
|
@ -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()){
|
||||
|
|
|
|||
Loading…
Reference in a new issue