Last active
October 17, 2019 09:15
-
-
Save juzhiyuan/d99426c12f398456d803c108d719f82f to your computer and use it in GitHub Desktop.
使用 hammerjs 实现的 Swiper 在 iOS 13 中出现卡顿,即滑动页面后页面停顿在两个 Swiper Item 中间。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 将下发代码放置在 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