mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1131 from cocos-creator/orientation
Fix some browser orientation can't be forced issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user