Minor fixes

This commit is contained in:
Hyunchul Kim 2021-09-12 12:11:01 +09:00
parent 91c2b17cd6
commit f1b8443e4b

View file

@ -63,7 +63,7 @@ var initY = 0;
let yScalar = 1;
if (window.innerWidth < 800) {
if (window.sessionStorage.getItem('isZoom') == 'true') {
yScalar = 4;
yScalar = 2;
} else {
yScalar = 2;
}
@ -79,7 +79,7 @@ for(let i = 0; i < sampleSVG.length; i++) {
},
position: {
x: render.canvas.width/2 + (Math.random() - 0.5) * render.canvas.width*0.8 - 50,
y: (window.innerHeight / 2 ) * Math.max(0, 0.6 + Math.random() * yScalar) // initY//
y: (window.innerHeight / 2 ) * Math.max(0, 0.6 + Math.random()) * yScalar// initY//
},
mass: Math.random(),
restitution: 0.5,