Google FastButton
An implementation of Google's FastButton javascript, to avoid the 300ms touch delay on Android and iOS devices. Code forked from: http://stackoverflow.com/questions/6300136/trying-to-implement-googles-fast-button
- Doesn't break in IE6-8, Chrome 17, Firefox 11, or Windows Phone 7.5
- Touch support tested in Android 2.3 (Nexus S) and IOS 5 (iPad 2)
- google.fastbutton.js The javascript, no dependencies
- xui.google.fastbutton.js Provides a nice event handler using XUI
- jquery.google.fastbutton.js Provides a nice event handler using jQuery
- Added a method destroy() to cleanup event handlers etc
Usage
new FastButton(document.getElementById('your-button'), function() {
alert('click');
});
jQuery Usage
$('#your-button').fastClick(function(e) {
alert('fast clicked!');
});
XUI Usage
x$('#your-button').fastClick(function(e) {
alert('fast clicked!');
});