touch-gesture
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i touch-gesture

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

34.7 kB

Total Files

30

Last publish

Collaborators

  • atool