Reputation: 173
Note: This question is purely hypothetical, I am well aware of touch events.
I have a large amount of html that has the onclick
event attribute attached to many of the html tags. The problem is that there is a small delay on touchscreen devices with the onclick
event. This is very annoying and makes things feel less responsive and slow, so I would like to know if you can control the delay time of onclick
, so it can be manipulated to feel like a touch event.
Upvotes: 0
Views: 370
Reputation: 3752
You could disable zoom for instant onClick.
<meta name="viewport" content="width=device-width, user-scalable=no">
The delay occurs because the phone is waiting for the second tap to zoom in.
Upvotes: 1