This commit is contained in:
libccy 2017-04-14 12:52:51 +08:00
parent 646169221c
commit a36d11024c
1 changed files with 1 additions and 2 deletions

View File

@ -6698,7 +6698,7 @@
lib.crosswalk=true; lib.crosswalk=true;
} }
if(lib.device=='android'&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<900&&!lib.crosswalk){ 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; game.deviceZoom=game.documentZoom;
document.documentElement.style.zoom=game.documentZoom; document.documentElement.style.zoom=game.documentZoom;
} }
@ -6739,7 +6739,6 @@
document.documentElement.style.backgroundPosition=''; document.documentElement.style.backgroundPosition='';
} }
document.body.insertBefore(ui.background,document.body.firstChild); document.body.insertBefore(ui.background,document.body.firstChild);
document.body.onresize=ui.updatex; document.body.onresize=ui.updatex;
if(lib.config.touchscreen){ if(lib.config.touchscreen){
document.body.addEventListener('touchstart',function(e){ document.body.addEventListener('touchstart',function(e){