{"id":13674936,"url":"https://github.com/Clouda-team/touchjs","last_synced_at":"2025-04-28T19:31:44.682Z","repository":{"id":13046794,"uuid":"15726786","full_name":"Clouda-team/touchjs","owner":"Clouda-team","description":"Touchjs getsture library","archived":false,"fork":false,"pushed_at":"2014-08-05T09:37:40.000Z","size":450,"stargazers_count":229,"open_issues_count":4,"forks_count":241,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-11-09T17:10:14.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://touch.code.baidu.com","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/Clouda-team.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":"2014-01-08T05:49:09.000Z","updated_at":"2024-07-22T09:39:39.000Z","dependencies_parsed_at":"2022-08-07T07:00:58.392Z","dependency_job_id":null,"html_url":"https://github.com/Clouda-team/touchjs","commit_stats":null,"previous_names":["einsteinhx/touchjs","brandnewera/touchjs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clouda-team%2Ftouchjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clouda-team%2Ftouchjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clouda-team%2Ftouchjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clouda-team%2Ftouchjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clouda-team","download_url":"https://codeload.github.com/Clouda-team/touchjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224128629,"owners_count":17260472,"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-08-02T12:00:20.599Z","updated_at":"2024-11-11T15:31:18.032Z","avatar_url":"https://github.com/Clouda-team.png","language":"JavaScript","funding_links":[],"categories":["Javascript"],"sub_categories":[],"readme":"Touchjs Getsture Library\n=======\n\n### API\n\n[API Docs](http://cloudajs.org/docs/step4_API_Documentation#h2_7)\n\n### EXAMPLES\n[Examples](http://code.baidu.com/examples.html)\n\n### NOTE\n\n与0.2.6及之前的touch.js兼容问题\n\n##### 兼容原因 \n0.2.6及之前的touch.js不支持事件代理机制，而新的touch.js通过手势识别，事件冒泡及原生的事件对象，提供事件代理机制和自定义事件的能力，从而极大提升性能。原有的stopPropagation会阻止原生事件冒泡，从而使手势识别失效，因此，需要手动删除/注释stopPropagation语句。麻烦各位根据自己项目的实际情况，选择性升级touch.js。\n\n##### 兼容方法 \n删除/注释所有绑定中的stopPropagation方法\n\n```js\ntouch.on('#rotation .target', 'touchstart', function(ev){ ev.startRotate();\n\tev.originEvent.preventDefault(); \n\t//ev.originEvent.stopPropagation(); \t//注释掉或者删掉stopPropagation方法\n});\n```\n\n### 包管理器\n\n`Touchjs`已发布至多种包管理器,可以通过以下包管理器来管理`Touchjs`:\n- ##### NPM\n  安装: `npm install touchjs`  \n  \n  更新: `npm update touchjs`  \n  \n  卸载: `npm uninstall touchjs`  \n\n- ##### spm\n  安装: `spm install touchjs`  \n  [![](http://spmjs.io/badge/touchjs)](http://spmjs.io/package/touchjs)\n  \n- ##### Bower\n  安装: `bower install touchjs`  \n  \n  更新: `bower update touchjs`  \n  \n  卸载: `bower uninstall touchjs` \n  \n- ##### Component\n  安装: `conponent install brandnewera/touchjs`\n\n### 问题反馈\n\n如有疑问, 可以直接提issue, 我们会及时为您解答.\n欢迎就`touch.js`提出宝贵的批评和建议.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClouda-team%2Ftouchjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FClouda-team%2Ftouchjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClouda-team%2Ftouchjs/lists"}