在做一屏滚动的H5页面的时候,必须移除touchmove事件,如果不移除,在安卓机上会触发微信原生的向下滚动拉出刷新。在IOS上出现上下都可以继续滑动,所以需要移除document的touchmove事件。

$(document).on('touchmove',function(event){
    event.preventDefault();
});

 

相关文章:

  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-12-08
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案