{"id":28708337,"url":"https://github.com/bpierre/vue-gestures","last_synced_at":"2025-06-14T18:11:05.005Z","repository":{"id":14355371,"uuid":"17065037","full_name":"bpierre/vue-gestures","owner":"bpierre","description":"Collection of Vue.js directives for touch gestures","archived":false,"fork":false,"pushed_at":"2019-02-13T17:19:13.000Z","size":39,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-05T21:12:12.692Z","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/bpierre.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-02-21T18:06:57.000Z","updated_at":"2023-03-08T04:15:50.000Z","dependencies_parsed_at":"2022-08-30T00:01:03.319Z","dependency_job_id":null,"html_url":"https://github.com/bpierre/vue-gestures","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpierre%2Fvue-gestures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpierre%2Fvue-gestures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpierre%2Fvue-gestures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpierre%2Fvue-gestures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpierre","download_url":"https://codeload.github.com/bpierre/vue-gestures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpierre%2Fvue-gestures/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259053511,"owners_count":22798438,"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":"2025-06-14T18:11:03.071Z","updated_at":"2025-06-14T18:11:04.990Z","avatar_url":"https://github.com/bpierre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-gestures\n\nvue-gestures is a collection of [Vue.js](http://vuejs.org/guide/) directives for touch gestures.\n\nIt is a work in progress at the moment, any help welcome!\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"274\" height=\"400\" alt=\"vue-gesture illustration\" src=\"http://scri.ch/may-2x.png\"\u003e\u003c/p\u003e\n\n\n## Installation\n\n### Browserify (npm)\n\n```\n$ npm install vue-gestures\n```\n\n### component\n\ncomponent will follow soon.\n\n### Standalone / RequireJS / AMD\n\nDownload [dist/vue-gestures.js](dist/vue-gestures.js) and include it in your HTML page.\n\nvue-gestures is available under the name *vueGestures* for AMD module loaders, or is directly set on `window.vueGestures`.\n\n## Example\n\nvue-gestures can be loaded into your ViewModel with [`Vue.plugin`](http://vuejs.org/guide/plugin.html).\n\n```js\nvar vueGestures = require('vue-gestures'); // with Browserify / CommonJS\nVue.use(vueGestures);\n```\n\n```html\n\u003ca v-tap=\"action()\"\u003eClick me\u003c/a\u003e\n```\n\n## Directives\n\n### v-tap\n\nActs like a `click` event, except it removes the [300ms delay](http://blogs.telerik.com/appbuilder/posts/13-11-21/what-exactly-is.....-the-300ms-click-delay) on touch devices.\n\n### v-touch\n\nActs like a `mousedown` event, triggers the function immediately.\n\nBe careful: every default browser behavior is prevented, including the scroll.\n\n## Configuration\n\n### global parameters\n\nSome parameters are applied to all the directives. You can also add these parameters on a directive level, e.g.\n\n```js\nVue.use(vueGestures, {\n  touch: { prefix: 'gestures' }\n});\n```\n\n#### `prefix`\n\nAdds a prefix to the directives loaded by the plugin.\n\n```js\nVue.use(vueGestures, { prefix: 'gestures' });\n```\n\n```html\n\u003ca v-gestures-tap=\"action()\"\u003eClick me\u003c/a\u003e\n\u003ca v-gestures-touch=\"action()\"\u003eClick me\u003c/a\u003e\n```\n\n### v-tap\n\n#### `moveTolerance` (default: 12)\n\nAfter the touchstart event, if the touch moves farther than this distance (in pixels), the action will be canceled (the user didn’t want to click).\n\n## Load the directives separately\n\nIf you don’t want to load all the directives, it is possible to load them separately:\n\n```js\nvar gestures = require('vue-gestures');\nVue.use(gestures.tap, {\n  // parameters\n});\nVue.use(gestures.touch, {\n  // parameters\n});\n```\n\n## License\n\n[MIT](http://pierre.mit-license.org/)\n\n## Special thanks\n\nIllustration made by [Raphaël Bastide](http://raphaelbastide.com/) with [scri.ch](http://scri.ch/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpierre%2Fvue-gestures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpierre%2Fvue-gestures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpierre%2Fvue-gestures/lists"}