问下关于监听 touchstart 的作用 #5118
Answered
by
awmleer
IronKinoko
asked this question in
Q&A
-
问下面这段代码有什么说法吗?我目前的猜测是解决300ms点击延迟 if (canUseDom) {
document.addEventListener('touchstart', () => {}, true)
} |
Beta Was this translation helpful? Give feedback.
Answered by
awmleer
Apr 26, 2022
Replies: 2 comments 2 replies
-
https://mobile.ant.design/zh/guide/quick-start |
Beta Was this translation helpful? Give feedback.
0 replies
-
是为了让 iOS Safari 下 button 和 a 的 更多信息可以看这里:https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
awmleer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是为了让 iOS Safari 下 button 和 a 的
:active
CSS 能生效,的确有点黑更多信息可以看这里:https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari