0.1.2 • Published 7 years ago
preact-tap-event-plugin v0.1.2
preact-tap-event-plugin: onTouchTap
for Preact
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();