englishtown / gudstrap

Sleek, intuitive, and powerful front-end framework for faster and easier web development.
http://englishtown.github.io/gudstrap/
Other
14 stars 6 forks source link

Add Faster Button #36

Open yaoazhen opened 11 years ago

yaoazhen commented 11 years ago

Add faster button for mobile

normanzb commented 11 years ago

@yaoazhen would u pls elaborate? any url or example?

yaoazhen commented 11 years ago

@normanzb Link is here https://developers.google.com/mobile/articles/fast_buttons

JavaScript DOM events tend to reflect the mouse ‘click’ paradigm, where each event neatly corresponds to a single, deliberate click of the button. Take the onClick event, for example.How does that translate to a touchscreen device? Not easily, as it turns out.

Treating a ‘tap’ as a ‘click’ is the practical approach. On iOS at least, there’s no onTap event – onClick has been repurposed for that role. But in order to properly handle multiple-touch gestures like pinching or even double-taps, some compromises have to be made. One of these is the roughly 300ms delay between a tap and the firing of a click event, which can make your apps feel laggy and unresponsive even when it’s not technically so.

reference from: http://labs.ft.com/2011/08/fastclick-native-like-tapping-for-touch-apps/