8000 mouse/Readme.md at master · dominicbarnes/mouse · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Latest commit

 

History

History
33 lines (18 loc) · 469 Bytes

Readme.md

File metadata and controls

33 lines (18 loc) · 469 Bytes

mouse

mouse events.

Installation

$ component install ui-component/mouse

API

mouse(el[, obj])

if object is given onmousedown, onmouseup, onmousemove will be called.

mouse.bind()

bind all mouse events on el.

mouse.unbind()

unbind all mouse events on el.

events:

  • down, emitted when the mouse is down.
  • move, emitted when the mouse is moved.
  • up, emitted when the mouse is up.

License

MIT

0