# double-tap-component

> double tap on elements. supports touch and mouse devices

Latest version **0.0.3** (published 2015-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install double-tap-component
pnpm add double-tap-component
yarn add double-tap-component
bun add double-tap-component
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-03-16 |
| First published | 2013-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | mattmueller, jonathanong, jongleberry, tootallnate, clintwood, thehydroimpulse, stephenmathieson, trevorgerhardt, timaschew, hughsk |

## Links

- npm: https://www.npmjs.com/package/double-tap-component
- Repository: https://github.com/component/double-tap
- Issues: https://github.com/component/double-tap/issues
- npm.io page: https://npm.io/package/double-tap-component

## Dependencies (2)

- [component-tap](https://npm.io/package/component-tap.md) *
- [component-event](https://npm.io/package/component-event.md) *

## Recent versions

- 0.0.3 (latest) — 2015-03-16
- 0.0.2 — 2013-09-04
- 0.0.1 — 2013-08-23

## README

# double-tap

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

## Installation

  Install with [component(1)](http://component.io):

    $ component install component/double-tap

## Example

```js
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

---
_Source: https://npm.io/package/double-tap-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
