cross-gesture
v1.5.1
Published
Gesture lib for the modern browsers
Downloads
23
Maintainers
Readme
Gesture lib
Gesture lib for modern browsers
Install
Npm:
npm install --save-dev cross-gesture
Yarn:
yarn add cross-gesture
Usage
import { CrossGesture } from 'cross-gesture'
const cg = new CrossGesture('#id')
cg.addListener('pinchAndRotate', (evt: TouchEvent, detail: GestureDetailPinchAndRotate) => {
console.log(detail)
})