/tap.mootools

A custom tap event for mootools, and automatic click -> tap conversion

Primary LanguageJavaScript

tap.mootools

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

Package Managers

// Bower
bower install --save tap-mootools

How to Use

$(el).addEvent('tap', function(e){
    // Tapped!
});
$(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

// Put this somewhere before your tap.mootools.js script
window.convertClicksToTaps = false;