double-tap-component
v0.0.3
Published
double tap on elements. supports touch and mouse devices
Downloads
28
Maintainers
Keywords
Readme
double-tap
double tap on elements. handles both double tap and double click.
Installation
Install with component(1):
$ component install component/double-tapExample
doubletap(box, function(e) {
box.style.backgroundColor = randomColor();
});API
doubletap(el, fn)
Initialize Doubletap.
doubletap.unbind()
Unbind Doubletap
TODO
normalize the event object in
component/tap. right now depending on if the device supports touch or not, the event object will be different (ex. noe.pageXon mobile)instead of handling click in doubleclick, move click logic to
component/tap
License
MIT
