mouse-events
v0.0.2
Published
Provides access to mouse events for developers using Node.js for browsers.
Downloads
3
Readme
mouse-events
Provides access to mouse events for developers using Node.js for browsers.
Usage
mouse = mouseevents()
Example
var mouse = window.mouseevents(document) // Default target is `document.body`
mouse.on("mousedown", function(mouseEvent) {
// ...
})
Default Events
- mousemove
- mouseup
- mousedown
- wheel
Tests
- Mocha
- Test functionality in Node.js
- Karma
- Using browserify, test functionality in browsers
- User Testing
npm run-script user-test
is set to build, serve, and open test/index.html