mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 09:32:38 +08:00
cc.Game should not initEvents in editor mode
This commit is contained in:
@@ -224,7 +224,9 @@ var game = /** @lends cc.game# */{
|
||||
*/
|
||||
cc.winSize = cc.director.getWinSize();
|
||||
|
||||
this._initEvents();
|
||||
if (!CC_EDITOR) {
|
||||
this._initEvents();
|
||||
}
|
||||
|
||||
this._setAnimFrame();
|
||||
this._runMainLoop();
|
||||
|
||||
Reference in New Issue
Block a user