Touchstart vs Click. What happens under the hood?

前端 未结 1 1182
夕颜
夕颜 2020-12-03 13:45

First, excuse me please, this is not a programming question, but I think it wont fit to Theoretical CS, and CS Non Programming is still in private Beta.

after updati

相关标签:
1条回答
  • 2020-12-03 14:29

    On the iPhone the touchstart event fires as soon as your finger touches the screen, whereas the click event fires 300 ms after you touch the screen and lift you finger off the screen. The 300 ms time delay is so that Safari can wait to see if you intend to double tap the screen in succession to simulate the zoom gesture.

    0 讨论(0)
提交回复
热议问题