{"id":20145746,"url":"https://github.com/obsius/mousetouch","last_synced_at":"2025-04-09T19:18:30.760Z","repository":{"id":57303198,"uuid":"174457197","full_name":"obsius/mousetouch","owner":"obsius","description":"A small library to provide consistent mouse and touch interactions.","archived":false,"fork":false,"pushed_at":"2024-07-23T02:25:31.000Z","size":85,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T19:18:25.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/obsius.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-08T02:46:24.000Z","updated_at":"2024-07-23T02:25:35.000Z","dependencies_parsed_at":"2024-07-23T05:23:42.427Z","dependency_job_id":null,"html_url":"https://github.com/obsius/mousetouch","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"b7f86b7c443c823e07bd02752729e232dde800c7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fmousetouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fmousetouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fmousetouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fmousetouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsius","download_url":"https://codeload.github.com/obsius/mousetouch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094989,"owners_count":21046770,"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-11-13T22:17:59.806Z","updated_at":"2025-04-09T19:18:30.732Z","avatar_url":"https://github.com/obsius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mousetouch\n\nMousetouch is a small, lightweight library to provide consistent mouse and touch interactions.\nIt only support touch interactions that can be done with the mouse also.\n\n## Integrating\n\nMousetouch has defined defaults and can be used by constructing it.\n\n### Reference\n\nEvents fired are of the format:\n```js\n{\n\tx: '\u003cnumber\u003e',\n\ty: '\u003cnumber\u003e',\n\tevent: '\u003coriginal event\u003e'\n}\n```\n\n```js\nimport Mousetouch from 'mousetouch';\nconst Mousetouch = require('mousetouch');\n\nconst mousetouch = new Mousetouch('\u003cdom element to listen to\u003e', {\n\tclickThreshold: '\u003cdefault 200 ms\u003e',\n\tdblClickThreshold: '\u003cdefault 500ms\u003e',\n\tmoveThreshold: '\u003cdefault 2px\u003e'\n});\n\nmousetouch.on('mousemove', (e) =\u003e { console.log(e) }); // { x, y, event }\nmousetouch.on('mousedown', (e) =\u003e {});\nmousetouch.on('mouseup', (e) =\u003e {});\nmousetouch.on('click', (e) =\u003e {});\nmousetouch.on('dblclick', (e) =\u003e {});\n```\n\n## Contributing\nFeel free to make changes and submit pull requests whenever.\n\n## License\nMousetouch uses the [MIT](https://opensource.org/licenses/MIT) license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsius%2Fmousetouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsius%2Fmousetouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsius%2Fmousetouch/lists"}