https://www.jianshu.com/p/04bf173826aa

记录下  这篇帖子  

解决办法1:

在touch的事件监听方法上绑定第三个参数{ passive: false },
通过传递 passive 为 false 来明确告诉浏览器:事件处理程序调用 preventDefault 来阻止默认滑动行为。

elem.addEventListener(
  'touchstart',
  fn,
  { passive: false }
);

解决办法2:

 * { touch-action: pan-y; } 
 使用全局样式样式去掉


相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2020-01-30
  • 2021-06-10
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案