{"id":16910563,"url":"https://github.com/estrattonbailey/srraf","last_synced_at":"2025-03-17T07:30:52.741Z","repository":{"id":48034228,"uuid":"80030481","full_name":"estrattonbailey/srraf","owner":"estrattonbailey","description":"Monitor scrolling and resizing without event listeners.","archived":false,"fork":false,"pushed_at":"2023-01-03T15:15:46.000Z","size":1044,"stargazers_count":30,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T23:15:44.327Z","etag":null,"topics":["resize","scroll","scrolling"],"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/estrattonbailey.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":"2017-01-25T16:04:05.000Z","updated_at":"2024-08-27T07:45:16.000Z","dependencies_parsed_at":"2023-02-01T07:01:02.672Z","dependency_job_id":null,"html_url":"https://github.com/estrattonbailey/srraf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estrattonbailey%2Fsrraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estrattonbailey%2Fsrraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estrattonbailey%2Fsrraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estrattonbailey%2Fsrraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estrattonbailey","download_url":"https://codeload.github.com/estrattonbailey/srraf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848098,"owners_count":20357489,"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":["resize","scroll","scrolling"],"created_at":"2024-10-13T19:01:31.463Z","updated_at":"2025-03-17T07:30:52.428Z","avatar_url":"https://github.com/estrattonbailey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# srraf\nMonitor scrolling and resizing without event listeners. **300 bytes gzipped.**\n\n## Install \n```bash\nnpm i srraf --save\n```\n\n# Usage\n```javascript\nimport srraf from 'srraf'\n\nconst scroller = srraf(({ x, px, y, py, vh, pvh, vw, pvw }, timestamp) =\u003e {\n  // ...\n})\n\nscroller.update() // check position\nscroller.destroy() // destroy listener\n```\n\nNote: values prefixed with `p` denote *previous* values.\n\n## License\nMIT License © [Eric Bailey](https://estrattonbailey.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festrattonbailey%2Fsrraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festrattonbailey%2Fsrraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festrattonbailey%2Fsrraf/lists"}