解决报错Unable to preventDefault inside passive event listener due to target being treated as passive.

xiaoxiao2025-04-05  15

属性 描述 touch-action: auto 浏览器会根据其支持的触控添加交互。比如x轴滚动、y轴滚动、双指缩放和双击。 touch-action: none 浏览器禁用触摸交互。 touch-action: pan-x 允许浏览器水平滚动,禁用垂直滚动及手势。 touch-action: pan-y 允许浏览器垂直滚动,禁用水平滚动及手势。 touch-action: manipulation 允许浏览器双方向滚动,也允许双指缩放;但忽略其他手势。

转载请注明原文地址: https://www.6miu.com/read-5027561.html

最新回复(0)