swipe-touch-events
v1.0.2
Published
Javascript based library that allow use swipe-touch events on DOM
Downloads
1
Maintainers
Readme
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');
});