DEPRECATED. Convert 'touchend' to 'click' events, for faster tap-feedback in mobile browsers
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.markdown
jquery.touchToClick.js

README.markdown

Warning: Discontinued

This project is not maintained anymore. We recommend you to have a look at FastClick instead.

Summary

Overrides the click event on mobile devices to fire a click event immediately and get rid of the 300ms delay (webkit for iPhone and Android problem).

touchToClick will fire an artificial click event when the touchend event is fired and the user hasn't moved since touchstart. The original click event of the mobile browser will be prevented so that there are not two clicks.

Usage

Just include the file in your webpage:

<script type="application/javascript" src="jquery.touchToClick.js"></script>