1.2.0 • Published 4 years ago
swipe-mobile v1.2.0
Installation
npm i swipe-mobileUsage
const { left } = initSwipe(element)
left((e) => {
// do something ...
})Function initSwipe returns EventController. It has the methods to set callbacks for swipe! To create listener, just use the function left or another one with callback with one parameter event.
Documentation
Full documentation is here