3.8.6最新版本,注册屏幕resize事件
cc.screen.on(‘window-resize’, (width, height)=> {
console.log(“window_resize”, width, height)
}, this);
wx.onWindowResize((res) => {
console.log(“resize”, res)
})
game.json加入"displayMode" : “desktop”
然后全屏,按esc,再全屏,返回的大小不对,微信第二次是对的,引擎返回的第二次是错的,造成触碰位置错位