Archive for category iPhone

iPhone Click Event Delay

It appears that the iPhone has a built-in delay of about 300ms before firing the click event. This is most likely to give the user time to make a gesture, such as scrolling the page. In some cases, though, this may not be desired. For instance, if you make a mobile web app that doesn’t scroll, there’s no reason to wait 300ms every time the user clicks.

In these cases, the trick is to use ontouchstart instead of onclick.

  • Share/Bookmark

,

No Comments