1.0.2 • Published 3 years ago
swipe-touch-events v1.0.2
swipe-touch-events
Javascript based library that allow use swipe-touch events on DOM
importing
import 'swipe-touch-events';
or import by hand
usage
document.addEventListener('swiperight', () => {
console.log('swiped right');
});
If you want to use events on specific DOM element:
element.addEventListener('swipedown', () => {
console.log('swiped down');
});