{"id":16469676,"url":"https://github.com/imfly/ember-cli-scroller","last_synced_at":"2025-08-10T10:27:17.632Z","repository":{"id":57223462,"uuid":"55504482","full_name":"imfly/ember-cli-scroller","owner":"imfly","description":"An Ember addon to add scroll event.","archived":false,"fork":false,"pushed_at":"2016-04-06T14:22:34.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:29:00.577Z","etag":null,"topics":[],"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/imfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-05T12:03:25.000Z","updated_at":"2018-05-16T08:48:40.000Z","dependencies_parsed_at":"2022-08-30T02:40:23.170Z","dependency_job_id":null,"html_url":"https://github.com/imfly/ember-cli-scroller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imfly/ember-cli-scroller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-scroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-scroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-scroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-scroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imfly","download_url":"https://codeload.github.com/imfly/ember-cli-scroller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-scroller/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269699541,"owners_count":24461215,"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-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-10-11T12:08:30.557Z","updated_at":"2025-08-10T10:27:17.576Z","avatar_url":"https://github.com/imfly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-cli-scroller\n\nAn Ember addon to add `scroll` event.\n\n这是一个插件`addon`，为ember的组件添加`scroll`事件。Ember的团队认为，`scroll`事件不具有普遍性，所以没有提供该事件的处理方法。\n\nDemo: [ember-cli-animated-header](https://github.com/imfly/ember-cli-animated-header)\n\n## Installation\n\n```sh\n$ ember install ember-cli-scroller --save\n```\n\n## Usage 使用\n\n在开发的组件里，这么使用:\n\n```\nimport Ember from 'ember';\nimport Scroller from 'ember-cli-scroller';\n\nexport default Ember.Component.extend(Scroller, {\n  didInsertElement: function() {\n    this.bindScrolling();\n  },\n\n  willRemoveElement: function() {\n    this.unbindScrolling();\n  },\n\n  // 用这个方法实现滚动时的逻辑\n  scrolled: function () {\n    // your code.\n  }\n});\n```\n具体请看上面的demo\n\n## Contributing 贡献\n\nPull requests welcome, but they must be fully tested (and pass all existing tests) to be considered. Discussion issues also welcome.\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running Tests 测试\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\nFor more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).\n\n## License\n\n[MIT LICENCE 2016 imfly](./LICENCE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fember-cli-scroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimfly%2Fember-cli-scroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fember-cli-scroller/lists"}