a hold event for mouse and touch
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js

Readme.md

hold

A hold event for touch and the mouse.

Installation

Install with component(1):

$ component install bmcmahen/hold

Example

var hold = require('hold');
var el = document.getElementById('btn');
hold(el, function(e){
	console.log('something held.');
});

hold.unbind();

License

MIT