{"id":19020823,"url":"https://github.com/maddeveloper/reliable-touch-element","last_synced_at":"2025-10-29T09:16:20.818Z","repository":{"id":57156710,"uuid":"249454815","full_name":"MadDeveloper/reliable-touch-element","owner":"MadDeveloper","description":"An element which provide a stable onTouch event, triggered only if a touchstart and touchend events were triggered on the element, without any touchmove events triggerd on the latter.","archived":false,"fork":false,"pushed_at":"2020-03-23T15:14:09.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T11:49:09.634Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MadDeveloper.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":"2020-03-23T14:33:34.000Z","updated_at":"2020-03-23T15:14:11.000Z","dependencies_parsed_at":"2022-08-30T03:21:36.541Z","dependency_job_id":null,"html_url":"https://github.com/MadDeveloper/reliable-touch-element","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Freliable-touch-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Freliable-touch-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Freliable-touch-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Freliable-touch-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadDeveloper","download_url":"https://codeload.github.com/MadDeveloper/reliable-touch-element/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240065113,"owners_count":19742449,"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-08T20:18:49.477Z","updated_at":"2025-10-29T09:16:15.784Z","avatar_url":"https://github.com/MadDeveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reliable-touch-element\n\nAn element providing a reliable `onTouch` callback.\nThe touch is reliable because the component need to have a `touchstart` and a `touchend` event, without any `touchmove` events, in order to trigger the `onTouch` callback.\n\nFor example, can be convenient when you have a scrollable list with touchable elements inside, in order to show/display, or navigate to, the element touched.\n\n## Usage\n\n```jsx\nimport { ReliableTouchElement } from \"reliable-touch-element\"\n// or\nimport ReliableTouchElement from \"reliable-touch-element\"\n// but prefer the first 😉\n\n\u003cReliableTouchElement onTouch={handleTouch}\u003e\n  Hello World!\n\u003c/ReliableTouchElement\u003e\n```\n\n## Props\n\n| Prop          | Type     | Required | Description                                         |\n| ------------- | -------- | -------- | --------------------------------------------------- |\n| onTouch       | function | yes      | Callback triggered when a real touch is detected    |\n| children      | any      | no       | Children of the element (wrapped in a div).         |\n| any div props |          |          | The component accepts any prop a `div` element can. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddeveloper%2Freliable-touch-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaddeveloper%2Freliable-touch-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddeveloper%2Freliable-touch-element/lists"}