vue开发移动端项目点击事件失效并且报错Intervention

问题描述:使用vue开发移动端页面时,提示如下错误,并且点击事件不触发,PC端正常

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

解决:全局样式添加* {touch-action: pan-y;}, pan-y表示启用单指垂直平移手势(上下滑动事件)

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理