From a36d11024cc45c302b15c09a90c982905197f886 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 14 Apr 2017 12:52:51 +0800 Subject: [PATCH] r --- game/game.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 802b4ccec..1790ae7fc 100644 --- a/game/game.js +++ b/game/game.js @@ -6698,7 +6698,7 @@ lib.crosswalk=true; } if(lib.device=='android'&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<900&&!lib.crosswalk){ - game.documentZoom=document.documentElement.offsetWidth/960; + game.documentZoom=Math.round(document.documentElement.offsetWidth/96)/10; game.deviceZoom=game.documentZoom; document.documentElement.style.zoom=game.documentZoom; } @@ -6739,7 +6739,6 @@ document.documentElement.style.backgroundPosition=''; } document.body.insertBefore(ui.background,document.body.firstChild); - document.body.onresize=ui.updatex; if(lib.config.touchscreen){ document.body.addEventListener('touchstart',function(e){