cargomedia / jquery.touchToClick

UNMAINTAINED. Convert 'touchend' to 'click' events, for faster tap-feedback in mobile browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UNMAINTAINED

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>

About

UNMAINTAINED. Convert 'touchend' to 'click' events, for faster tap-feedback in mobile browsers

License:MIT License


Languages

Language:JavaScript 100.0%