double-tap-component

0.0.3 • Public • Published

double-tap

double tap on elements. handles both double tap and double click.

Installation

Install with component(1):

$ component install component/double-tap

Example

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. no e.pageX on mobile)

  • instead of handling click in doubleclick, move click logic to component/tap

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i double-tap-component

    Weekly Downloads

    9

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • mattmueller
    • jonathanong
    • jongleberry
    • tootallnate
    • clintwood
    • thehydroimpulse
    • stephenmathieson
    • trevorgerhardt
    • timaschew
    • hughsk