[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;
}
网友评论