{"id":23053626,"url":"https://github.com/component/gesture","last_synced_at":"2025-08-15T04:30:51.152Z","repository":{"id":4298539,"uuid":"5429852","full_name":"component/gesture","owner":"component","description":"Multi-touch gesture sugar layer on top of hammer.js","archived":false,"fork":false,"pushed_at":"2017-01-06T23:17:07.000Z","size":131,"stargazers_count":16,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T07:05:42.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2012-08-15T18:27:46.000Z","updated_at":"2017-11-11T08:16:13.000Z","dependencies_parsed_at":"2022-08-06T16:00:51.242Z","dependency_job_id":null,"html_url":"https://github.com/component/gesture","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/component/gesture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgesture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgesture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgesture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgesture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/gesture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgesture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270523875,"owners_count":24600186,"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-15T02:00:12.559Z","response_time":110,"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":"2024-12-16T00:18:55.870Z","updated_at":"2025-08-15T04:30:50.890Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Gesture\n\n  Emitter wrapper and a little sugar on top of [Hammer.js](https://github.com/eightmedia/hammer.js).\n\n## Installation\n\n```\n$ component install component/gesture\n```\n\n## Events\n\n  - `drag start`\n  - `drag`\n  - `drag end`\n  - `tap`\n  - `double tap`\n  - `hold`\n  - `release`\n  - `transform start`\n  - `transform`\n  - `transform end`\n  - `swipe`\n  - `swipe left`\n  - `swipe right`\n  - `swipe up`\n  - `swipe down`\n\n## API\n  \n### gesture(el)\n\n  Bind gestures to the given `el` and returns a `Gesture`.\n\n```js\nvar gesture = require('gesture');\nvar img = document.getElementById('maru');\n\nvar maru = gesture(img);\n\nmaru.on('transform', function(e){\n  var r = e.rotation.toFixed(2);\n  var s = e.scale.toFixed(2);\n  img.style['-webkit-transform'] = 'rotate(' + r + 'deg) scale(' + s + ')';\n});\n\nsetTimeout(function(){\n  maru.unbind();\n}, 5000);\n```\n\n### Gesture#unbind()\n\n  Unbind event handlers.\n\n## License\n\n  MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fgesture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fgesture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fgesture/lists"}