{"id":15566934,"url":"https://github.com/voxtobox/vue-scroll-stop","last_synced_at":"2025-08-18T17:13:17.374Z","repository":{"id":143926622,"uuid":"115351852","full_name":"voxtobox/vue-scroll-stop","owner":"voxtobox","description":"A tiny Vue directive that stop propagation scroll when edge reached","archived":false,"fork":false,"pushed_at":"2018-05-06T08:18:05.000Z","size":1216,"stargazers_count":41,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T01:33:05.700Z","etag":null,"topics":["scroll","scrolling","vue","vue-directive","vue2","vuejs2"],"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/voxtobox.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}},"created_at":"2017-12-25T16:52:39.000Z","updated_at":"2022-02-04T03:16:29.000Z","dependencies_parsed_at":"2024-01-08T08:45:23.074Z","dependency_job_id":null,"html_url":"https://github.com/voxtobox/vue-scroll-stop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/voxtobox/vue-scroll-stop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxtobox%2Fvue-scroll-stop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxtobox%2Fvue-scroll-stop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxtobox%2Fvue-scroll-stop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxtobox%2Fvue-scroll-stop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxtobox","download_url":"https://codeload.github.com/voxtobox/vue-scroll-stop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxtobox%2Fvue-scroll-stop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027687,"owners_count":24687082,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["scroll","scrolling","vue","vue-directive","vue2","vuejs2"],"created_at":"2024-10-02T17:08:55.322Z","updated_at":"2025-08-18T17:13:17.348Z","avatar_url":"https://github.com/voxtobox.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","UI实用程序","Components \u0026 Libraries","UI Utilities","UI Utilities [🔝](#readme)"],"sub_categories":["滚动","UI Utilities","Scroll"],"readme":"# vue-scroll-stop\n\nA tiny Vue directive that stop propagation scroll when edge reached.\nWorks with desktop `mousewheel` and mobile `touchmove` events\n\n:white_check_mark: On | :x: Off \n------------- | -------------\n![screenshot](vue-scroll-stop-on.gif)  | ![screenshot](vue-scroll-stop-off.gif)\n\n## Sandbox\n\nWant to try? [Here's a link](https://jsfiddle.net/voxtobox/9ghLbek8/).\n\n## Installation\n\n```javascript\nnpm i --save vue-scroll-stop\n```\n\n### Import\nIn main.js:\n```javascript\nimport Vue from 'vue'\nimport VueScrollStop from 'vue-scroll-stop'\nimport App from './App.vue'\n \nVue.use(VueScrollStop)\n \nnew Vue({\n  el: '#app',\n  render: h =\u003e h(App)\n})\n```\n\n### Browser\n\nInclude the script file, then install the component with `Vue.use(VueScrollStop);` e.g.:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"node_modules/vuejs/dist/vue.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"node_modules/vue-scroll-stop/dist/vue-scroll-stop.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  Vue.use(VueScrollStop);\n\u003c/script\u003e\n```\n\n## Usage\n\nOnce installed, it can be used in a template as simply:\n```html\n\u003cdiv v-scroll-stop\u003e\u003c/div\u003e\n```\nBy default directive works on both direction but you can strict it by using modifier v (vertical) or h (horizontal) \n```html\n\u003cdiv v-scroll-stop.h\u003e\u003c/div\u003e  \u003c!-- Works only for horizontal scroll --\u003e\n```\n\nYou can pass `false` as value to disable directive reactive\n```html\n\u003cdiv v-scroll-stop.h=\"false\"\u003e\u003c/div\u003e \u003c!-- Directive disabled --\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxtobox%2Fvue-scroll-stop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxtobox%2Fvue-scroll-stop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxtobox%2Fvue-scroll-stop/lists"}