CSS 属性:touch-action,解决移动端点击事件延迟

https://developer.mozilla.org/zh-CN/docs/Web/CSS/touch-action

CSS属性 touch-action 用于指定某个给定的区域是否允许用户操作,以及如何响应用户操作(比如浏览器自带的划动、缩放等)。

我们平常说的移动端300ms延迟,就可以使用 touch-action: manipulation; 来解决。 

如果,css默认样式里设置了

touch-action:none,滚动缩放等行为将不会发生

 

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案