clamped element scale to 1.5x

This commit is contained in:
booploops 2022-07-07 16:11:08 -07:00
parent b10279f192
commit 951538e6e7
3 changed files with 6 additions and 7 deletions

View file

@ -1097,7 +1097,7 @@ const app = new Vue({
},
setWindowScaleFactor() {
let scale = window.devicePixelRatio * window.innerWidth / 1280 * window.innerHeight / 720
let desiredScale = parseFloat(app.cfg.visual.maxElementScale == -1 ? 1.6 : app.cfg.visual.maxElementScale)
let desiredScale = clamp(parseFloat(app.cfg.visual.maxElementScale == -1 ? 1.5 : app.cfg.visual.maxElementScale), 1, 1.5)
app.$store.state.windowRelativeScale = scale
if(scale <= 1) {
scale = 1