# zentaps

> Kills the 300ms tap delay (old Android not yet supported)

Latest version **0.5.0** (published 2015-08-29) · Unlicense license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install zentaps
pnpm add zentaps
yarn add zentaps
bun add zentaps
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2015-08-29 |
| First published | 2015-08-29 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gabor Lenard |
| Maintainers | zengabor |
| Keywords | performance, mobile, tap, 300ms, ux |

## Links

- npm: https://www.npmjs.com/package/zentaps
- Repository: https://github.com/zengabor/zentaps
- Homepage: https://zengabor.github.io/zentaps/
- Issues: https://github.com/zengabor/zentaps/issues
- npm.io page: https://npm.io/package/zentaps

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 0.5.0 (latest) — 2015-08-29

## README

<p align="center">
	<a href="https://zengabor.github.io/zentaps/">
		<img src="https://zengabor.github.io/zentaps/zentaps.png" alt="Zentaps">
	</a>
</p>


#### [**Demo**](https://zengabor.github.io/zentaps/) &nbsp; &nbsp; &nbsp; &nbsp; [**Download**](https://github.com/zengabor/zentaps/archive/latest.zip) &nbsp; &nbsp; &nbsp; &nbsp; [**About**](#about) &nbsp; &nbsp; &nbsp; &nbsp; [**Install**](#install) &nbsp; &nbsp; &nbsp; &nbsp; [**How to use**](#how-to-use) &nbsp; &nbsp; &nbsp; &nbsp; [**License**](#license)


# Make Your Web Site Feel Like a Native&nbsp;App

Zentaps automatically removes the 300&nbsp;ms delay on&nbsp;mobile.

Vanilla JavaScript. 442 bytes.


## About

Zentaps is a tiny JavaScript module which automatically removes the 300 miliseconds tap delay on iOS devices.

Features:

- Taps take less than 15ms instead of 300ms.
- Supports iOS Safari and browsers in iOS apps.
- Support for old Android browsers (2.3+) is coming later.
- Support for Windows Phone is coming later (if needed).
- Support isn’t needed for Chrome which already fixed the 300ms tap delay. (I wish Apple would do the same. The double-tap zoom & double-tap scroll are relics of the past.)
- Support isn’t needed for browsers that don’t support touch events (e.g., desktop browsers without touch screens).
- 442 bytes minimized & gzipped.

Zentaps observes touch events in the background. If there is no click event in a timely manner (that is, within 10ms) then Zentaps fires a click event and kills the ghost click that comes after 300ms. Of course, if the browser fires the click within 10ms (e.g., when you tapped a little bit longer on iOS) then Zentaps doesn’t have to do anything.

## Install

[Download Zentaps](https://github.com/zengabor/zentaps/archive/latest.zip) and include it into your page. A good place is at the very bottom, just before the closing `</body>` tag. For&nbsp;example:

````html
    ...
    <script src="zentaps-min.js"></script>
</body>
````

There is nothing else to do. Zentaps automatically detects touch-capable browsers that need a speed-up.

You can also use npm to install Zenscroll:

````
npm install zentaps
````


## License

[Public Domain](http://unlicense.org). You can do with it whatever you want and I am not responsible for anything.


## Other projects by me:

- [Zenfonts](https://github.com/zengabor/zenfonts), a tiny JavaScript helper for @font-face loading.
- [Zenscroll](https://github.com/zengabor/zenscroll), a JavasScript module to smooth-scroll web pages and container elements.
- [Zenvite.com](http://zenvite.com/): Create beautiful invitation pages & get everybody on the same page.

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