{"id":15739659,"url":"https://github.com/fluse/react-scroll-bound","last_synced_at":"2025-05-07T13:04:18.936Z","repository":{"id":8497335,"uuid":"58620084","full_name":"fluse/react-scroll-bound","owner":"fluse","description":"Prevent scrolling on parent element if list reached end or start.","archived":false,"fork":false,"pushed_at":"2023-01-05T02:22:50.000Z","size":2306,"stargazers_count":6,"open_issues_count":24,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T13:04:08.741Z","etag":null,"topics":["component","es6","overflow","parent","prevent","react","react-component","reactjs","scroll","scrolling"],"latest_commit_sha":null,"homepage":"https://fluse.github.io/react-scroll-bound/","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/fluse.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":"2016-05-12T07:50:41.000Z","updated_at":"2020-08-11T08:53:44.000Z","dependencies_parsed_at":"2023-01-13T14:49:58.793Z","dependency_job_id":null,"html_url":"https://github.com/fluse/react-scroll-bound","commit_stats":null,"previous_names":["fluse/react-list-scroll-bound"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-scroll-bound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-scroll-bound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-scroll-bound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-scroll-bound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluse","download_url":"https://codeload.github.com/fluse/react-scroll-bound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252883226,"owners_count":21819158,"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":["component","es6","overflow","parent","prevent","react","react-component","reactjs","scroll","scrolling"],"created_at":"2024-10-04T02:05:33.702Z","updated_at":"2025-05-07T13:04:18.913Z","avatar_url":"https://github.com/fluse.png","language":"JavaScript","funding_links":["https://www.paypal.me/schauf"],"categories":[],"sub_categories":[],"readme":"# react-scroll-bound\n\nPrevent scrolling on parent element if list reached end or start.\n\nBrings a better control for user and increase use experience.\n\n**[Watch Demo](https://fluse.github.io/react-scroll-bound/)**\n\nsupports react 15.x and 16.x\n\n## Install\n\n```\nnpm install react-scroll-bound --save\n```\n\n## Usage\n\n```jsx\nimport ScrollBound from 'react-scroll-bound'\n\n\u003cScrollBound\u003e\n    {this.getListPoints()}\n\u003c/ScrollBound\u003e\n```\n\nSet css for element overflow scroll\n\n```css\n.my-class-name {\n    max-height: 250px;\n    overflow-y: auto;\n}\n```\n\n### Change HTML-Tag\n\ndefault tagName is `\u003cul\u003e`\n\n```jsx\n\u003cScrollBound tagName=\"div\"\u003e\n    {this.getListPoints()}\n\u003c/ScrollBound\u003e\n```\n\n### Set properties\n\nall attributes and properties will transmitted with `{...this.props}`\n\n```jsx\n\u003cScrollBound \n    id=\"name\" \n    onWheel={onWheel} \n    onClick={onClick} \n    className=\"my-list\"\n\u003e\n    {this.getListPoints()}\n\u003c/ScrollBound\u003e\n```\n\n## Development\n\nif you want to add or optimize this component, feel free \u003c3\n\n#### Run Dev Server\n\n```\nnpm start\n```\n\n### Compile to ES5\n\n```\nnpm run compile\n```\n\n## Give me a coffee\n\n[![Donate](https://img.shields.io/badge/donate-%20%E2%9D%A4%20-green.svg)](https://www.paypal.me/schauf)\n\n[get in touch?](http://www.holger-schauf.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Freact-scroll-bound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluse%2Freact-scroll-bound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Freact-scroll-bound/lists"}