EventTouch.getLocation()坐标有偏差,点击域也好像有点问题

onTouchEnd(e: EventTouch) {
let touch = e.getLocation();
console.log(touch.x))
}
2.4版本和3.3版本做的对比,2.4版本没有问题,3.3版本获取的坐标在7501334分辨率下x轴偏几十个像素。
this.node.on(Node.EventType.TOUCH_END, this.onTouchEnd, this);
较小的分辨率下(393
786),图片的点击区域也会改变,边缘点击无反应

使用 getUILocation
这个应该是你想要的;

很nice

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。