search

Home  >  Q&A  >  body text

javascript - Clicking a button on an iPhone requires two clicks before it takes effect

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

淡淡烟草味淡淡烟草味2786 days ago711

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-19 10:13:29

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

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:13:29

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

    reply
    0
  • Cancelreply