@averta/touch-swipe
v1.0.6
Published
Detects swipe gesture on element including gesture data
Downloads
10
Readme
Touch Swipe
Detects swipe gesture on element including gesture data.
Install
npm install @averta/touch-swipe --save-dev
Usage
const element = document.querySelector(".touch-area");
const touchSwipe = new TouchSwipe(element);
touchSwipe.onSwipe = status => {
console.log(status);
};