解决[Intervention] Unable to preve
2020-03-19 本文已影响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;
}