Minor fixes
This commit is contained in:
parent
91c2b17cd6
commit
f1b8443e4b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue