alexblack / google-fastbutton

Implementation of Google's FastButton javascript and jQuery and XUI.js integration
167 stars 46 forks source link

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

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!');
});