tweak bounds
This commit is contained in:
parent
8ad45503d0
commit
e70c252a69
|
|
@ -15,7 +15,7 @@ if(urlParams.get('pixelSize') != null) { //null check
|
|||
}
|
||||
}
|
||||
pixelSize = parseFloat(pixelSize)
|
||||
pixelSize = Math.min(300,Math.max(pixelSize,0.00001))
|
||||
pixelSize = Math.min(194.73749999999999,Math.max(pixelSize,0.05))
|
||||
} else {
|
||||
// Vanilla code: If the screen size is under 768px, set pixelSize to 5, otherwise 6
|
||||
if (window.innerWidth < 700) {
|
||||
|
|
@ -23,4 +23,4 @@ if(urlParams.get('pixelSize') != null) { //null check
|
|||
} else {
|
||||
pixelSize = 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue