# preact-tap-event-plugin **Repository Path**: mirrors_developit/preact-tap-event-plugin ## Basic Information - **Project Name**: preact-tap-event-plugin - **Description**: ☝️ onTouchTap for preact - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # preact-tap-event-plugin: `onTouchTap` _for [Preact]_ [![NPM](https://img.shields.io/npm/v/preact-tap-event-plugin.svg)](https://www.npmjs.com/package/preact-tap-event-plugin) [![Travis](https://travis-ci.org/developit/preact-tap-event-plugin.svg?branch=master)](https://travis-ci.org/developit/preact-tap-event-plugin) `onTouchTap` is a [FastClick]-style instant "click" event, triggered by `touchstart` and `touchend` occurring within a 10-pixel radius. > This module intentionally has the same interface as [react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) so that it can be used as a drop-in alias when working with [preact-compat](https://github.com/developit/preact-compat). #### [JSFiddle Demo](https://jsfiddle.net/developit/rq877gp3/) --- ## Usage Example `npm i -S preact-tap-event-plugin` ```js import injectTapEventPlugin from 'preact-tap-event-plugin'; injectTapEventPlugin(); ``` --- ## License [MIT] [Preact]: https://github.com/developit/preact [FastClick]: https://github.com/ftlabs/fastclick [MIT]: http://choosealicense.com/licenses/mit/