Skip to content

Commit

Permalink
Fixed android to use onresize instead of onorientationchange
Browse files Browse the repository at this point in the history
  • Loading branch information
Eemeli Kelokorpi committed May 22, 2014
1 parent 044d8cc commit 827e41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 827e41c

Please sign in to comment.