antd-mobile 的Carousel 滑动报错

Version

2.2.1

Environment

windows10 专业版

Reproduction link

https://blog.guanjp.com/

Steps to reproduce

左右滑动Carousel组件,控制台报 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
不影响用户操作,但是控制台会一直报错,对错误收集会有影响

What is expected?

正常滑动,控制台无报错信息

What is actually happening?

正常滑动,控制台报错

解决

css加上下面这个属性即可屏蔽

touch-action: pan-y;

你可能感兴趣的:(antd-mobile 的Carousel 滑动报错)