@odopod/odo-tap
v1.1.2
Published
A service to interpret taps on elements.
Downloads
11
Readme
Odo Tap
A service to interpret taps on elements. Useful for delegated clicks on the document or body because iOS is buggy with delegated clicks on "non-clickable" elements.
Install
npm install @odopod/odo-tap --save
Quick Start
import OdoTap from '@odopod/odo-tap';
const tapId = OdoTap.addListener(document.getElementById('thing-to-tap'), function () {
console.log('tapped');
});
Documentation
Visit the Odo component directory for demos, code examples, and documentation.