A custom tap event for MooTools + automatic click to tap conversion
// Bower bower install --save tap-mootools
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;
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