-
Creator 版本:2.3.4
-
目标平台:android
节点 Canvas/map 在map上某个脚本为Canvas节点添加了touchmove事件
双指缩放的时候 会多次触发事件 并且相邻的2次数据相差非常大
this.canvas.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
onTouchMove(event) {
let touches = event.getTouches();
if (touches.length == 2 && this.zooming) {
const pos1 = this.node.convertToNodeSpaceAR(touches[0].getLocation());
console.log(“x:”, pos1.x, " y:", pos1.y);
}
},

