jQuery Plugin To Enhance Mobile Tap Event - jTap

File Size: 52.1 KB
Views Total: 1488
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin To Enhance Mobile Tap Event - jTap

jTap is a jQuery plugin for mobile that makes click/tap events faster by removing the default 300ms delay on touch devices. In addition, the plugin solves an issue where clicking on non-delegated place of document will not work. 

See also:

How to use it:

1. Load jQuery library and the jQuery jTap plugin into your html document.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" 
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" 
        crossorigin="anonymous">
</script>
<script src="jquery.tap.js"></script>

2. Set an event handler like this:

$('#el').on('tap', handler);

Changelog:

2019-02-18

  • Allow movement in a square of 10 pixels
  • Fixed: triggering a click does not trigger a tap

This awesome jQuery plugin is developed by BR0kEN-. For more Advanced Usages, please check the demo page or visit the official website.