yanhaijing / zepto.fullpage

Focusing on the fullPage.js for mobile terminals.
MIT License
2.1k stars 510 forks source link

修复document的touchmove事件默认passive:true导致下拉刷新等bug #108

Closed mengxiong10 closed 6 years ago

mengxiong10 commented 6 years ago

Chrome 56以上开始设置默认设置document touchmove listeners的passive:true提高滚动性能, 这样导致设置的e.preventDefault()无效. 不能阻止下拉刷新,IPhoneX上滑也有问题.

yanhaijing commented 6 years ago

感谢反馈,我研究研究这个问题

yanhaijing commented 6 years ago

https://zhuanlan.zhihu.com/p/24555031 相关文档

yanhaijing commented 6 years ago

感谢

mengxiong10 commented 6 years ago

image 改成var 比较保险(^__^)

yanhaijing commented 6 years ago

好的