@odopod/odo-on-swipe
v1.1.2
Published
Provide event hook for swipes on an element.
Downloads
12
Readme
Odo On Swipe
Provide event hook for swipes on an element.
Install
npm install @odopod/odo-on-swipe --save
Quick Start
import OdoOnSwipe from '@odopod/odo-on-swipe';
const element = document.getElementById('foo');
const instance = new OdoOnSwipe(element, swiped(event) {
element.textContent = 'Swiped ' + event.direction;
});
Documentation
Visit the Odo component directory for demos, code examples, and documentation.