@odopod/odo-tap

A service to interpret taps on elements.

Usage no npm install needed!

<script type="module">
  import odopodOdoTap from 'https://cdn.skypack.dev/@odopod/odo-tap';
</script>

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.