Commit 5a06d2f2 authored by liujiangnan's avatar liujiangnan

feat: 原生端适配

parent b55ee5b9
...@@ -360,7 +360,7 @@ cc.Class({ ...@@ -360,7 +360,7 @@ cc.Class({
// this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()]) // this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()])
this.node.zIndex = 9999 this.node.zIndex = 9999
window.dispatchEvent(new CustomEvent('resize'), true) // window.dispatchEvent(new CustomEvent('resize'), true)
// window.dispatchEvent(new cc.Event.EventCustom('resize', true)) // window.dispatchEvent(new cc.Event.EventCustom('resize', true))
}); });
cc.director.on('GAME_VIEW_DISPLAYED', () => { cc.director.on('GAME_VIEW_DISPLAYED', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment