美文网首页让前端飞Web前端之路
解决[Intervention] Unable to preve

解决[Intervention] Unable to preve

作者: 竿牍 | 来源:发表于2020-03-19 09:25 被阅读0次
image.png

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

有报错就应该把它消灭掉,这是程序员的天性

解决:在style全局样式添加* {touch-action: pan-y;}, pan-y表示启用单指垂直平移手势(上下滑动事件)。
想更多了解touch-action可以参考touch-action

* {
    touch-action: pan-y;
}

相关文章

网友评论

    本文标题:解决[Intervention] Unable to preve

    本文链接:https://www.haomeiwen.com/subject/mnlkyhtx.html