Skip to content

bmcmahen/hold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a hold event for mouse and touch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published