cross-gesture
Version:
Gesture lib for the modern browsers
30 lines (19 loc) • 392 B
Markdown
# Gesture lib
Gesture lib for modern browsers
## Install
Npm:
``` bash
npm install --save-dev cross-gesture
```
Yarn:
``` bash
yarn add cross-gesture
```
## Usage
``` typescript
import { CrossGesture } from 'cross-gesture'
const cg = new CrossGesture('#id')
cg.addListener('pinchAndRotate', (evt: TouchEvent, detail: GestureDetailPinchAndRotate) => {
console.log(detail)
})
```