Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

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

About

mouse events.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages