Commit ecee0ad7 authored by 范雪寒's avatar 范雪寒

fix: 大屏触摸不呼出菜单问题

parent 35d0925a
......@@ -35,24 +35,6 @@ cc.Class({
onLoad() {
this.initSceneData();
this.initSize();
cc.director._scene.width = 1280;
cc.director._scene.height = 720;
console.log('喵喵喵:' + cc.director._scene.width);
console.log('喵喵喵:' + cc.director._scene.height);
const canvas = cc.find("Canvas");
canvas.on("mousemove", function () { });
cc.director._scene.on("mousemove", function () {
console.log('喵喵喵')
});
cc.director._scene.on("thoucmove", function () {
console.log('汪汪汪')
});
cc.director._scene.on("touchmove", function () {
console.log('汪汪汪2')
});
},
_imageResList: null,
......@@ -90,6 +72,9 @@ cc.Class({
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
cc.director._scene.width = frameSize.width;
cc.director._scene.height = frameSize.height;
},
......
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