随身笔记
随身笔记

Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted

https://sdeno.com/wp-content/uploads/2021/04/error_20210420140216-1024x181.png

大概意思呢就是:一个有设置cancelable=false的touchmove事件和其他某个滚动的操作冲突了。

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

* {
  touch-action: none;
}

 

没有标签
首页      前端资源      Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted

随身笔记

Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted
大概意思呢就是:一个有设置cancelable=false的touchmove事件和其他某个滚动的操作冲突了。 我们只需要将滑动报错的标签上加上一个样式即可 touch-action: none; touch-action :当你…
扫描二维码继续阅读
2021-04-20