From d76fa31ce226d6280840548d548bd56722285b7b Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 21 Sep 2016 02:01:31 +0800 Subject: [PATCH] Fix some browser orientation can't be forced issue --- cocos2d/core/platform/CCView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos2d/core/platform/CCView.js b/cocos2d/core/platform/CCView.js index 45a205bed4..f9d71d0cb4 100644 --- a/cocos2d/core/platform/CCView.js +++ b/cocos2d/core/platform/CCView.js @@ -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