Phaser3 触摸滚动问题,现在是不知道怎么去写,然后自己写了个body触摸滚动相机视图,现在有一个问题,触摸滚动会触发精灵的点击事件,这个怎么解决呢,Phaser3的触摸方法怎么写啊,官方文档实在是看不懂怎么写,有会的帮忙指教一下。
document.body.addEventListener("touchstart", function (e) {});
document.body.addEventListener("touchmove", function (e) {
});
document.body.addEventListener("touchend", function (e) {});
// 触摸滚动会导致下面精灵点击事件触发 有什么办法可以解决吗?
sprite.on("pointerup", function (e) {
})