{"id":20018341,"url":"https://github.com/varletjs/bounce-fixer","last_synced_at":"2025-05-04T23:31:10.699Z","repository":{"id":168306059,"uuid":"643996978","full_name":"varletjs/bounce-fixer","owner":"varletjs","description":"Fixed bouncing caused by pull up or pull down on mobile web pages","archived":false,"fork":false,"pushed_at":"2023-12-29T08:04:42.000Z","size":429,"stargazers_count":9,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T14:02:43.508Z","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/varletjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-05-22T15:32:17.000Z","updated_at":"2023-06-06T02:42:49.000Z","dependencies_parsed_at":"2023-12-29T09:24:20.416Z","dependency_job_id":null,"html_url":"https://github.com/varletjs/bounce-fixer","commit_stats":null,"previous_names":["varletjs/bounce-fixer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varletjs%2Fbounce-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varletjs%2Fbounce-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varletjs%2Fbounce-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varletjs%2Fbounce-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varletjs","download_url":"https://codeload.github.com/varletjs/bounce-fixer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252414191,"owners_count":21744061,"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-13T08:21:47.754Z","updated_at":"2025-05-04T23:31:05.682Z","avatar_url":"https://github.com/varletjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/varletjs/bounce-fixer/blob/main/README.zh-CN.md\"\u003e中文 README\u003c/a\u003e\n\n### Intro\n\nFixed bouncing caused by pull up or pull down on mobile web pages\n\n### Quickstart\n\n#### CDN\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@varlet/bounce-fixer/iife.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconst { createBounceFixer } = BounceFixer\n\nconst { enable, disable } = createBounceFixer()\n\n// enable bounce fixer\nenable()\n\n// disable bounce fixer\n// disable()\n\u003c/script\u003e\n```\n\n#### npm/yarn/pnpm\n\n```\n# npm\nnpm i @varlet/bounce-fixer -S\n\n# yarn\nyarn add @varlet/bounce-fixer\n\n# pnpm\npnpm add @varlet/bounce-fixer\n```\n\n```js\nimport { createBounceFixer } from '@varlet/bounce-fixer'\n\nconst { enable, disable } = createBounceFixer()\n\n// enable bounce fixer\nenable()\n\n// disable bounce fixer\n// disable()\n```\n\n### What problem to resolve\n\nWhen using a scrollable container(e.g. using overflow: auto) on an iOS device and sliding the pointer to the bottom or top, the page bounces like rubber bands. And scrolling the page for a period of time will cause the page to bounce, affecting normal page scrolling.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarletjs%2Fbounce-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarletjs%2Fbounce-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarletjs%2Fbounce-fixer/lists"}