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