cocos 3.8在电脑触摸屏上 TOUCH_MOVE失效

使用 2.4版本 触摸屏 需要添加 cc.sys.capabilities[‘touches’] = true; 可以完美解决触摸滑动的事件的监听。
cocos 3.8 版本以上怎么解决,有大佬知道吗?@官方大大 帮忙看一下

顶起来,顶起来

我也遇到了,咋解决的

Web平台吗?

electron 打包 web,生成.exe,放到触摸屏上使用

生成的index.html中的head内加一下这个试试

<script>if (document.documentElement.ontouchstart === undefined) document.documentElement.ontouchstart = null</script>
1赞

这个可以的 :grinning: