Skip to content

developit/preact-tap-event-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


Usage Example

npm i -S preact-tap-event-plugin

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

injectTapEventPlugin();

License

MIT