[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus

滚动页面时,出现以下报错信息:

https://img2020.cnblogs.com/blog/2423921/202106/2423921-20210623114148119-582311157.png

我们只需要将滑动报错的标签上加上一个样式即可 touch-action: none;
touch-action :当你触摸并按住触摸目标时候,禁止或显示系统默认菜单。
touch-action取值有一下两种
none:系统默认菜单被禁用
default:系统默认菜单不被禁用

posted @ 2021-06-23 11:44  xencc  阅读(334)  评论(0)    收藏  举报