jo icon indicating copy to clipboard operation
jo copied to clipboard

Eliminate Tap Delay On Mobile

Open kesne opened this issue 11 years ago • 4 comments

On mobile devices there's around a 300ms delay when tapping elements. This has been pretty well documented.

There are some libraries that aim to solve this like fastclick. Jo could implement it by changing what the selectEvent is on mobile devices and redefine it as a touchstart event.

Thoughts?

kesne avatar Dec 13 '13 07:12 kesne

Yeah, I had removed it on 0.4.1, but ran into some issues on Tizen and... IE? So I reverted back to tap events and took the delay for now. Well spotted. :)

davebalmer avatar Dec 14 '13 04:12 davebalmer

If that's the case maybe platform detect and only use the touchstart event on iOS and Android? I don't think it's an issue on Firefox and FirefoxOS if you set user-scalable to false.

kesne avatar Dec 14 '13 04:12 kesne

Yes; will most likely have different scheme for "troubled" platforms (iOS and Android may be the only ones). The touch event scheme is also due for an overhaul at some point. :)

davebalmer avatar Dec 14 '13 06:12 davebalmer

You're probably right there, although as a temporary fix for this I think this would be acceptable. Especially given that 300ms of touch delay sucks.

kesne avatar Dec 14 '13 11:12 kesne