解决报错:[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

问题出现场景

移动端引入fastclick后快速双击出现该问题
image

解决方案

在 style 中添加下列样式

* {
  touch-action: pan-y;
}
posted @ 2022-07-28 11:12  朝颜浅语  阅读(391)  评论(0编辑  收藏  举报