ui: revert pixel ratio detection as it doesn't play well with smartphone & tablets

This commit is contained in:
jean-emmanuel 2017-04-09 23:38:59 +02:00
parent 0f737bcedf
commit af2e6e4fa1

View file

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