tap.mootools 1.0.0

A custom tap event for MooTools + automatic click to tap conversion

Package Managers

// Bower bower install --save tap-mootools



Details

Author
Matt McCloskey
Current version
1.0.0
GitHub
mattmccloskey/tap.mootools
Downloads
1160
Category
Native
Report
GitHub Issues

Releases


How to use

javascript $(el).addEvent('tap', function(e){ // Tapped! });

javascript $(el).addEvent('click', function(e){ // if it's a touch device, this will fire on tap too! });

If you want you can turn off click to tap conversion javascript // Put this somewhere before your tap.mootools.js script window.convertClicksToTaps = false;


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus