Merge pull request #1131 from cocos-creator/orientation

Fix some browser orientation can't be forced issue
This commit is contained in:
Wang Nan
2016-09-21 14:21:11 +08:00
committed by GitHub
+3 -1
View File
@@ -324,7 +324,9 @@ var View = cc._Class.extend({
cc.container.style.transformOrigin = '0px 0px 0px';
this._isRotated = true;
}
this._orientationChanging = false;
setTimeout(function () {
cc.view._orientationChanging = false;
}, 1000);
},
// hack