From 827e41c05df06451ec519b21c9220e9209ed29e4 Mon Sep 17 00:00:00 2001 From: Eemeli Kelokorpi Date: Thu, 22 May 2014 10:23:28 +0300 Subject: [PATCH] Fixed android to use onresize instead of onorientationchange --- src/engine/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/system.js b/src/engine/system.js index 1249acb2..c589f197 100644 --- a/src/engine/system.js +++ b/src/engine/system.js @@ -363,7 +363,7 @@ game.System = game.Class.extend({ } } - if (typeof window.onorientationchange !== 'undefined') { + if (typeof window.onorientationchange !== 'undefined' && !game.device.android) { window.onorientationchange = this.onResize.bind(this); } else {