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

1.5.1 • Public • Published

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)
})

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i cross-gesture

    Weekly Downloads

    20

    Version

    1.5.1

    License

    MIT

    Unpacked Size

    83.7 kB

    Total Files

    22

    Last publish

    Collaborators

    • yuuko