Skip to content

Instantly share code, notes, and snippets.

@juzhiyuan
Last active October 17, 2019 09:15
Show Gist options
  • Save juzhiyuan/d99426c12f398456d803c108d719f82f to your computer and use it in GitHub Desktop.
Save juzhiyuan/d99426c12f398456d803c108d719f82f to your computer and use it in GitHub Desktop.
使用 hammerjs 实现的 Swiper 在 iOS 13 中出现卡顿,即滑动页面后页面停顿在两个 Swiper Item 中间。
// 将下发代码放置在 HTML 中
document.body.addEventListener('touchmove', function(e) {e.preventDefault()}, {passive: false})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment