touch-gesture
v0.1.0
Published
Nano version of gestures for customize.
Downloads
6
Readme
touch-gesture
Nano version of gestures for customize.
Install
npm i --save touch-gesture
Usage
- Code usage
import { GM } from 'touch-gesture';
const gm = new GM(document);
// when tap
gm.on('tap', () => {
// do something
});
- Script usage
Just import dist/tg.min.js
into your document with script tag.
Gestures
- Pan.
- Press
- Swipe
- Tap
License
MIT@hustcc.