Created
June 7, 2017 06:58
-
-
Save dailc/ebecd61b83c63055c319ca32f16b2f13 to your computer and use it in GitHub Desktop.
[点击出现两次tap] 点击时会出现两次tap事件的bug tags:tap,iscroll5
This file contains hidden or 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
## 描述 | |
一个页面中,使用了IScroll5作为下拉刷新,使用mui监听tap事件。 | |
结果点击时出现两次tap事件,而其它地方监听则不会出现两次 | |
## 分析 | |
通过分析,最终问题锁定为: IScroll5中的probe源码中如果启用了tap,点击时会手动抛出一次tap时间。而mui(或者JQ)本身也会监听一次tap,导致了2次的bug | |
## 解决 | |
下拉刷新创建IScroll时,禁用tap `options.tap=false`,这样就不会影响其它第三方tap插件了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment