UNPKG

cross-gesture

Version:
30 lines (19 loc) 392 B
# 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) }) ```