{"id":30580569,"url":"https://github.com/react-component/gesture","last_synced_at":"2025-08-29T05:37:22.198Z","repository":{"id":48403914,"uuid":"97698649","full_name":"react-component/gesture","owner":"react-component","description":"Support gesture for react component.","archived":false,"fork":false,"pushed_at":"2021-07-27T21:16:10.000Z","size":996,"stargazers_count":103,"open_issues_count":15,"forks_count":11,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-08-09T04:31:18.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-component.github.io/gesture/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-19T09:30:18.000Z","updated_at":"2023-12-05T11:07:45.000Z","dependencies_parsed_at":"2022-08-24T20:41:28.589Z","dependency_job_id":null,"html_url":"https://github.com/react-component/gesture","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/gesture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fgesture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fgesture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fgesture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fgesture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/gesture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fgesture/sbom","scorecard":{"id":765361,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/gesture","commit":"b47e78d8270291b5a140ed56482985c3cf152888"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T00:37:18.551Z","repository_id":48403914,"created_at":"2025-08-23T00:37:18.551Z","updated_at":"2025-08-23T00:37:18.551Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636182,"owners_count":24967983,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-29T05:37:21.504Z","updated_at":"2025-08-29T05:37:22.188Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-gesture\n---\n\nSupport gesture for react component, inspired by [hammer.js](https://github.com/hammerjs/hammer.js) and [AlloyFinger](https://github.com/AlloyTeam/AlloyFinger).\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![gemnasium deps][gemnasium-image]][gemnasium-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-gesture.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-gesture\n[travis-image]: https://img.shields.io/travis/react-component/gesture.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/gesture\n[coveralls-image]: https://img.shields.io/coveralls/react-component/gesture.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/gesture?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/gesture.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/gesture\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-gesture.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-gesture\n\n## Screenshots\n\n\n## Features\n\n\n\n## Install\n\n```bash\nnpm install --save rc-gesture\n```\n\n[![rc-gesture](https://nodei.co/npm/rc-gesture.png)](https://npmjs.org/package/rc-gesture)\n\n## Usage\n\n```tsx\nimport Gesture from 'rc-gesture';\n\nReactDOM.render(\n  \u003cGesture\n    onTap={(gestureStatus) =\u003e { console.log(gestureStatus); }}\n  \u003e\n    \u003cdiv\u003econtainer\u003c/div\u003e\n  \u003c/Gesture\u003e,\ncontainer);\n```\n\n\n## API\n\nall callback funtion will have one parammeter: `type GestureHandler = (s: IGestureStatus) =\u003e void;`\n\n- gesture: the rc-gesture state object, which contain all information you may need, see [gesture](#gesture)\n\n### props:\n\n#### common props\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003edirection\u003c/td\u003e\n          \u003ctd\u003estring\u003c/td\u003e\n          \u003cth\u003e`all`\u003c/th\u003e\n          \u003ctd\u003econtrol the allowed gesture direction, could be `['all', 'vertical', 'horizontal']`\u003c/td\u003e\n      \u003c/tr\u003e\n\u003c/table\u003e\n\n#### Tap \u0026 Press\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonTap\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003esingle tap callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPress\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003elong tap callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPressOut\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003elong tap end callback\u003c/td\u003e\n      \u003c/tr\u003e\n\u003c/table\u003e\n\n#### Swipe\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonSwipe\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003eswipe callback, will triggered at the same time of all of below callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonSwipeLeft\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003eswipe left callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonSwipeRight\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003eswipe right callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonSwipeTop\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003eswipe top callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonSwipeBottom\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003eswipe bottom callback\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n#### Pan\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPan\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epan callback, will triggered at the same time of all of below callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanStart\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003edrag start callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanMove\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003edrag move callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanEnd\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003edrag end callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanCancel\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003edrag cancel callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanLeft\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epan left callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanRight\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epan right callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanTop\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epan top callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanBottom\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epan bottom callback\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n#### Pinch\n\npinch gesture is not enabled by default, you must set `props.enablePinch = true` at first;\n\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinch\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch callback, will triggered at the same time of all of below callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinchStart\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch start callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinchMove\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch move callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinchEnd\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch end callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPanCancel\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch cancel callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinchIn\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch in callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonPinchOut\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003epinch out callback\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n#### Rotate\n\npinch gesture is not enabled by default, you must set `props.enableRotate = true` at first;\n\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonRotate\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003erotate callback, will triggered at the same time of all of below callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonRotateStart\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003erotate start callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonRotateMove\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003erotate move callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonRotateEnd\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003erotate end callback\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n          \u003ctd\u003eonRotateCancel\u003c/td\u003e\n          \u003ctd\u003efunction\u003c/td\u003e\n          \u003cth\u003e\u003c/th\u003e\n          \u003ctd\u003erotate cancel callback\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n## gesture\n\n```tsx\n// http://hammerjs.github.io/api/#event-object\nexport interface IGestureStauts {\n    /* start status snapshot */\n    startTime: number;\n    startTouches: Finger[];\n\n    startMutliFingerStatus?: MultiFingerStatus[];\n\n    /* now status snapshot */\n    time: number;\n    touches: Finger[];\n\n    mutliFingerStatus?: MultiFingerStatus[];\n\n    /* delta status from touchstart to now, just for singe finger */\n    moveStatus?: SingeFingerMoveStatus;\n\n    /* whether is a long tap */\n    press?: boolean;\n\n    /* whether is a swipe*/\n    swipe?: boolean;\n    direction?: number;\n\n    /* whether is in pinch process */\n    pinch?: boolean;\n    scale?: number;\n\n    /* whether is in rotate process */\n    rotate?: boolean;\n    rotation?: number; // Rotation (in deg) that has been done when multi-touch. 0 on a single touch.\n};\n```\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\n`npm start` and then go to `http://localhost:8005/examples/`\n\nOnline examples: [http://react-component.github.io/gesture/](http://react-component.github.io/gesture/)\n\n## Test Case\n\n`http://localhost:8005/tests/runner.html?coverage`\n\n## Coverage\n\n`http://localhost:8005/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8088/tests/runner.html?coverage`\n\n## License\n\n`rc-gesture` is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fgesture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fgesture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fgesture/lists"}