Solve the mobile terminal error: Unable to preventDefault inside passive event listener due to target being treated as...

Solve the mobile terminal error: Unable to preventDefault inside passive event listener due to target being treated as...

The error is as follows:
insert image description here
Solution:

//在容器css样式添加如下代码
    touch-action: pan-y; 
//或者设置全局css
* {
    
     
    touch-action: pan-y; 
}

Guess you like

Origin blog.csdn.net/m0_46374969/article/details/121752500