javascript - Clicking a button on an iPhone requires two clicks before it takes effect
淡淡烟草味
淡淡烟草味 2017-05-19 10:11:29
0
2
695

I wrote a website. On an Android phone, clicking the button once takes effect, but on an iPhone, it takes two clicks. Why is this? How to solve it?

Thanks

淡淡烟草味
淡淡烟草味

reply all(2)
淡淡烟草味

It should be the classic 300ms delay. You can use touchstart instead of click to do click events, or use FastClick.js.

刘奇

It is recommended to check from the perspective of framework and browser

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template