解决[Intervention] Unable to preventDefault inside passive event listener due to target being treat...
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;
}
发表评论 (审核通过后显示评论):