Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加js事件解决方案 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

juno5460
Copy link

或者可以通过使用fastclick来解决300ms点击延迟的问题。

添加js事件解决方案
@yuanyan
Copy link
Contributor

yuanyan commented Dec 26, 2013

@juno5460 似乎有冲突?

@icepy
Copy link

icepy commented Feb 24, 2014

@juno5460 发现一篇,300ms详细问题阐述的文章http://thx.alibaba-inc.com/mobile/300ms-click-delay/

@hiwanz
Copy link

hiwanz commented Feb 24, 2014

https://developers.google.com/mobile/articles/fast_buttons?hl=zh-CN google早先有提及延时问题

@yuanyan
Copy link
Contributor

yuanyan commented Feb 24, 2014

解决300ms后,事件穿透的问题,有好的解决方法吗?

@hiwanz
Copy link

hiwanz commented Feb 25, 2014

试试把底下的pointer-events设为none看看

@yuanyan
Copy link
Contributor

yuanyan commented Feb 26, 2014

@hiwanz 是一种思路,不过这样复杂度提升许多,同时无法解决页面跳转场景下的事件穿透的情况
@yisibl FYI

@chemzqm
Copy link
Contributor

chemzqm commented May 25, 2014

Fastclick看上去复杂度有点过高了,我用的是 tap-event。另外我个人建议非外部跳转不要使用a链接,有时候a标签的click事件会在touchend之前触发然后阻塞绑定的tap,造成不必要的麻烦。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants