From af2e6e4fa1f86252ac5df61b64e5f1e9680588ef Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 9 Apr 2017 23:38:59 +0200 Subject: [PATCH] ui: revert pixel ratio detection as it doesn't play well with smartphone & tablets --- src/browser/js/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/js/browser.js b/src/browser/js/browser.js index c5ceede5..f0abd651 100644 --- a/src/browser/js/browser.js +++ b/src/browser/js/browser.js @@ -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 }