@emotionagency/touchmouse
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Library that provides a common interface for mouse and touch events

Instalation

npm i @emotionagency/touchmouse

or

yarn add @emotionagency/touchmouse

Usage

Basic example

import {mousedown, mousemove, mouseup} from '@emotionagency/touchmouse'

const cb = () => console.log('I am working')

mousedown.on(document.body, cb, {passive: true})
mousedown.off(document.body, cb)

Package Sidebar

Install

npm i @emotionagency/touchmouse

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

11.2 kB

Total Files

15

Last publish

Collaborators

  • lkosteckyi