ui: revert pixel ratio detection as it doesn't play well with smartphone & tablets
This commit is contained in:
parent
0f737bcedf
commit
af2e6e4fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ TABS = {}
|
|||
PXSCALE = 1
|
||||
INITIALZOOM = 1
|
||||
PXSCALE_RESET = ()=>{
|
||||
PXSCALE = (window.devicePixelRatio || 1) * getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")
|
||||
PXSCALE = getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")
|
||||
document.documentElement.style.setProperty("--pixel-scale", PXSCALE)
|
||||
INITIALZOOM = PXSCALE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue