{"id":15156323,"url":"https://github.com/wangpin34/vue-scroll","last_synced_at":"2025-09-30T04:32:18.416Z","repository":{"id":51038121,"uuid":"54944495","full_name":"wangpin34/vue-scroll","owner":"wangpin34","description":"Scroll directive on vue","archived":true,"fork":false,"pushed_at":"2023-01-05T00:04:18.000Z","size":622,"stargazers_count":245,"open_issues_count":4,"forks_count":88,"subscribers_count":10,"default_branch":"2.0-compatible","last_synced_at":"2025-01-19T06:05:59.421Z","etag":null,"topics":["directive","scroll","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"","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/wangpin34.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":"2016-03-29T03:56:03.000Z","updated_at":"2025-01-18T12:27:42.000Z","dependencies_parsed_at":"2023-02-03T01:00:43.016Z","dependency_job_id":null,"html_url":"https://github.com/wangpin34/vue-scroll","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fvue-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fvue-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fvue-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fvue-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangpin34","download_url":"https://codeload.github.com/wangpin34/vue-scroll/tar.gz/refs/heads/2.0-compatible","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234702068,"owners_count":18873824,"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":["directive","scroll","vuejs","vuejs2"],"created_at":"2024-09-26T19:03:51.921Z","updated_at":"2025-09-30T04:32:13.174Z","avatar_url":"https://github.com/wangpin34.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-scroll\r\n\r\nscroll directive for [vuejs 2.0](https://vuejs.org/v2/guide/)\r\n\r\nFor vue 1.x, please use vue-scroll@1.0.4. Currently its code is in master branch.\r\n\r\n[![NPM](https://nodei.co/npm/vue-scroll.png?stars\u0026downloads)](https://nodei.co/npm/vue-scroll/)\r\n\r\n[![](https://img.shields.io/travis/wangpin34/vue-scroll.svg?style=flat-square)](https://travis-ci.org/wangpin34/vue-scroll)\r\n[![Coveralls](https://img.shields.io/coveralls/wangpin34/vue-scroll.svg?style=flat-square)](https://coveralls.io/github/wangpin34/vue-scroll)\r\n\r\n\r\n[![npm package](https://img.shields.io/npm/v/vue-scroll.svg?style=flat-square)](https://www.npmjs.org/package/vue-scroll)\r\n[![NPM downloads](http://img.shields.io/npm/dm/vue-scroll.svg?style=flat-square)](https://npmjs.org/package/vue-scroll)\r\n[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/wangpin34/vue-scroll.svg)](http://isitmaintained.com/project/wangpin34/vue-scroll \"Average time to resolve an issue\")\r\n\r\n## Installation\r\n### NPM(recommended)\r\n```\r\nnpm install vue-scroll --save\r\n```\r\n### Standalone\r\n**Standalone bundle is not support on latest v2.1.0 currently**\r\n\r\nSimple download from [releases](https://github.com/wangpin34/vue-scroll/releases) and include it in script tag.\r\n\r\n## Get started\r\n\r\n```javascript\r\nimport Vue from 'vue'\r\nimport vuescroll from 'vue-scroll'\r\n\r\nVue.use(vuescroll)\r\n```\r\n\r\nDirective v-scroll then can be used in any of your Component.\r\n\r\n```App.vue\r\n\u003ctemplate\u003e\r\n  \u003cul v-scroll=\"onScroll\"\u003e\r\n    \u003cli\u003e\u003c/li\u003e\r\n  \u003c/ul\u003e\r\n\u003c/template\u003e\r\n...\r\n```\r\n\r\nMethod onScroll receives two arguments once scroll event is fired,\r\n\r\n* e - event\r\n* position - Object contains scrolling data\r\n  - scrollTop Number\r\n  - scrollLeft Number\r\n\r\n## Advanced\r\nthrottle and debounce are supported since v2.1.0, you can enable it as global configurations like:\r\n\r\n```javascript\r\nVue.use(vuescroll, {throttle: 600})\r\n//Or\r\nVue.use(vuescroll, {debounce: 600})\r\n```\r\n\r\nOverride global configurations like\r\n\r\n```html\r\n\u003cul v-scroll:throttle=\"{fn: onScroll, throttle: 500 }\"\u003e\r\n```\r\n```html\r\n\u003cul v-scroll:debounce=\"{fn: onScroll, debounce: 500 }\"\u003e\r\n```\r\n\r\n## Demo\r\nYou please try the demo hosted on codesandbox: https://codesandbox.io/s/vuescroll-demo-orders-view-f4d3d?fontsize=14\r\n\r\n\r\n## LICENSE\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangpin34%2Fvue-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangpin34%2Fvue-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangpin34%2Fvue-scroll/lists"}