tweak bounds

This commit is contained in:
Lily-129 2022-04-21 11:32:54 -04:00 committed by GitHub
parent 8ad45503d0
commit e70c252a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}