0.1.0 • Published 5 years ago

touch-gesture v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

touch-gesture

Nano version of gestures for customize.

npm npm gzip

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.