{"id":19970189,"url":"https://github.com/webdeveric/swipe-dispatcher","last_synced_at":"2026-05-08T23:06:21.460Z","repository":{"id":7421571,"uuid":"56342725","full_name":"webdeveric/swipe-dispatcher","owner":"webdeveric","description":"Dispatch custom swipe events to DOM nodes.","archived":false,"fork":false,"pushed_at":"2023-01-09T17:58:37.000Z","size":258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T10:56:46.886Z","etag":null,"topics":["events","swipe","swipe-dispatcher","touch"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2016-04-15T18:52:45.000Z","updated_at":"2022-04-10T15:02:00.000Z","dependencies_parsed_at":"2023-01-13T14:22:24.365Z","dependency_job_id":null,"html_url":"https://github.com/webdeveric/swipe-dispatcher","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fswipe-dispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fswipe-dispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fswipe-dispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fswipe-dispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/swipe-dispatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404418,"owners_count":19957655,"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":["events","swipe","swipe-dispatcher","touch"],"created_at":"2024-11-13T02:53:30.309Z","updated_at":"2026-05-08T23:06:16.407Z","avatar_url":"https://github.com/webdeveric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swipe Dispatcher\n\nDispatch custom `swipe` events to DOM nodes.\n\n## Install\n\n```shell\nnpm install swipe-dispatcher --save\n```\n\n## Usage\n\n```js\nimport SwipeDispatcher from 'swipe-dispatcher';\n\nnew SwipeDispatcher( { /* options */ } );\n```\n\n## Options\n\n| Option | Default | Description |\n| :----- | :------ | :---------- |\n| `root`   | `document.documentElement` | Event listeners get attached to this node |\n| `maxTime` | `333` | The maximum time a swipe should take |\n| `minDistance` | `100` | The minimum move distance |\n| `variance` | `100` | The allowed horizontal/vertical variance |\n| `preventMove` | `true` | Should `preventDefault` be called on `touchmove` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fswipe-dispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fswipe-dispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fswipe-dispatcher/lists"}