clamped element scale to 1.5x
This commit is contained in:
parent
b10279f192
commit
951538e6e7
3 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue