Odo Tap

A service to interpret taps on elements.

Support

IE9+

Dependencies

Odo Helpers, Odo Pointer, ES6 Map.

Tap

Tap me, I'm a <div>

Click

Click me, I'm a <div>

Adding a tap listener

var tapId = OdoTap.addListener(document.getElementById('the-div'), handleTap);

Remove a tap listener

OdoTap.remove(tapId);