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.
npm i -S preact-tap-event-plugin
import injectTapEventPlugin from 'preact-tap-event-plugin';
injectTapEventPlugin();