![cover](https://img-blog.csdnimg.cn/cc454b99c0384ccba6796e6dd2b9a995.png)
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as
报错:[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
·
报错:[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>
解决:在style全局样式添加* {touch-action: pan-y;}, pan-y表示启用单指垂直平移手势(上下滑动事件)。
* {
touch-action: pan-y;
}
备注:此种情况,目前在uni-app开发的h5页面,引用vtk.js,转动模型时出现。
更多推荐
所有评论(0)