{"id":15369123,"url":"https://github.com/developit/preact-tap-event-plugin","last_synced_at":"2025-08-10T19:29:49.194Z","repository":{"id":57329585,"uuid":"75663972","full_name":"developit/preact-tap-event-plugin","owner":"developit","description":"☝️ onTouchTap for preact","archived":false,"fork":false,"pushed_at":"2019-03-25T15:24:23.000Z","size":9,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T11:16:10.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/preact-tap-event-plugin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-05T20:35:47.000Z","updated_at":"2019-08-07T00:24:36.000Z","dependencies_parsed_at":"2022-09-16T17:52:15.126Z","dependency_job_id":null,"html_url":"https://github.com/developit/preact-tap-event-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-tap-event-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-tap-event-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-tap-event-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-tap-event-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/preact-tap-event-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249081909,"owners_count":21209776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:34:17.743Z","updated_at":"2025-04-15T13:43:03.604Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"# preact-tap-event-plugin: `onTouchTap` \u003csub\u003e_for [Preact]_\u003c/sub\u003e\n\n[![NPM](https://img.shields.io/npm/v/preact-tap-event-plugin.svg)](https://www.npmjs.com/package/preact-tap-event-plugin)\n[![Travis](https://travis-ci.org/developit/preact-tap-event-plugin.svg?branch=master)](https://travis-ci.org/developit/preact-tap-event-plugin)\n\n`onTouchTap` is a [FastClick]-style instant \"click\" event, triggered by `touchstart` and `touchend` occurring within a 10-pixel radius.\n\n\u003e 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).\n\n#### [JSFiddle Demo](https://jsfiddle.net/developit/rq877gp3/)\n\n\n---\n\n\n## Usage Example\n\n`npm i -S preact-tap-event-plugin`\n\n\n```js\nimport injectTapEventPlugin from 'preact-tap-event-plugin';\n\ninjectTapEventPlugin();\n```\n\n\n---\n\n\n## License\n\n[MIT]\n\n\n[Preact]: https://github.com/developit/preact\n[FastClick]: https://github.com/ftlabs/fastclick\n[MIT]: http://choosealicense.com/licenses/mit/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-tap-event-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpreact-tap-event-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-tap-event-plugin/lists"}