微信小程序使用swiper报错:[Intervention] Unable to preventDefault inside passive event listener

小程序使用Vant Weapp组件的SwipeCell 滑动单元格报错:

[渲染层错误] Ignored attempt to cancel a touchmove event with
cancelable=false, for example because scrolling is in progress and
cannot be interrupted.

解决方法
在有滚动的容器css样式添加如下代码

touch-action: pan-y;

//或者使用全局样式样式去掉
* { touch-action: pan-y; } 

你可能感兴趣的:(小程序,小程序)