Adds a "touchtap" custom event which responds to touch only
npm install touchtap-event
A lightweight JavaScript library that adds a touchtap custom event to the document which can be listened to on any element. This will only emit an event on touch enabled devices or those emulating touch devices.
It works by listening to various touch events to dispatch the event if the touchstart and touchend events were in approximately the same position and took <= 200ms.
``bashvia bower
bower install --save touchtap-event
Including
`html
`Usage
`javascript
var elem = document.querySelector('#some-element');
elem.addEventListener('touchtap', function (e) {
console.log(e);
});
``