From 473efb56d38d2f6c70559cc30505c41fff653da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Petre=CC=81re?= Date: Wed, 11 Oct 2017 09:32:57 -0300 Subject: [PATCH] Resize event on browser not working --- cocos2d/core/platform/CCEGLView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos2d/core/platform/CCEGLView.js b/cocos2d/core/platform/CCEGLView.js index 448f1b2f1b..f91e54b8b8 100755 --- a/cocos2d/core/platform/CCEGLView.js +++ b/cocos2d/core/platform/CCEGLView.js @@ -187,6 +187,8 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{ if (sys.isMobile) { window.addEventListener('orientationchange', this._orientationChange); + } else { + this._orientationChanging = false; } },