Skip to content

Commit e853e8b

Browse files
author
pandamicro
committed
Fix force orientation issue on some browser
1 parent ae8ac40 commit e853e8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cocos2d/core/platform/CCEGLView.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
331331
cc.container.style.transformOrigin = '0px 0px 0px';
332332
this._isRotated = true;
333333
}
334-
this._orientationChanging = false;
334+
setTimeout(function () {
335+
cc.view._orientationChanging = false;
336+
}, 1000);
335337
},
336338

337339
// hack

0 commit comments

Comments
 (0)