All Projects → developit → preact-tap-event-plugin

developit / preact-tap-event-plugin

Licence: other
☝️ onTouchTap for preact

Programming Languages

javascript
184084 projects - #8 most used programming language

preact-tap-event-plugin: onTouchTap for Preact

NPM Travis

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 so that it can be used as a drop-in alias when working with preact-compat.

JSFiddle Demo


Usage Example

npm i -S preact-tap-event-plugin

import injectTapEventPlugin from 'preact-tap-event-plugin';

injectTapEventPlugin();

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].