{"id":17816733,"url":"https://github.com/ryandrewjohnson/jquery-scrollfreeze","last_synced_at":"2026-07-19T04:34:51.555Z","repository":{"id":15828985,"uuid":"18568851","full_name":"ryandrewjohnson/jquery-scrollfreeze","owner":"ryandrewjohnson","description":"A simple jQuery plugin that allows you to easily disable(freeze) user scroll events on the window.","archived":false,"fork":false,"pushed_at":"2014-05-30T20:02:08.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T00:49:38.444Z","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/ryandrewjohnson.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":"2014-04-08T17:54:12.000Z","updated_at":"2014-05-30T20:02:08.000Z","dependencies_parsed_at":"2022-09-24T04:51:42.433Z","dependency_job_id":null,"html_url":"https://github.com/ryandrewjohnson/jquery-scrollfreeze","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryandrewjohnson/jquery-scrollfreeze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryandrewjohnson%2Fjquery-scrollfreeze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryandrewjohnson%2Fjquery-scrollfreeze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryandrewjohnson%2Fjquery-scrollfreeze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryandrewjohnson%2Fjquery-scrollfreeze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryandrewjohnson","download_url":"https://codeload.github.com/ryandrewjohnson/jquery-scrollfreeze/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryandrewjohnson%2Fjquery-scrollfreeze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35642105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"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-27T16:39:07.144Z","updated_at":"2026-07-19T04:34:51.540Z","avatar_url":"https://github.com/ryandrewjohnson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery.scrollfreeze\n\nA simple jQuery plugin that allows you to easily disable(freeze) user scroll events on the window.\n\n## Installation\n\nInclude script *after* the jQuery library:\n\n```html\n\u003cscript src=\"/path/to/jquery.scrollfreeze.js\"\u003e\u003c/script\u003e\n```\n\nThe plugin can also be loaded as an AMD module.\n\n## Usage\n\nThe plugin automatically initializes on document.ready, and requires no configuration except for one optional setting `useOverflow`, which I will explain shortly.\n\nTo disable(freeze) user scroll:\n\n```javascript\n$.scrollFreeze.freeze();\n```\n\nTo renable(thaw) user scroll:\n\n```javascript\n$.scrollFreeze.thaw();\n```\n\nTo toggle between disabled and enabled scroll:\n\n```javascript\n$.scrollFreeze.toggle();\n```\n\nBy default `freeze` and `thaw` will only block user scroll events e.g. Mouse Wheel, arrow keys. The user still has the ability to use the scroll bar to scroll the page by default. To prevent this call the `useOverflow` method upon page load. \n\n```javascript\n$.scrollFreeze.useOverflow();\n```\n\nTo disable plugin, which essentially removes the event listenrs on the plugin:\n\n```javascript\n$.scrollFreeze.disable();\n```\n\nIf you need to re-enable after disabling:\n\n```javascript\n$.scrollFreeze.enable();\n```\n\nSome convenience methods to retrieve state:\n\n```javascript\n$.scrollFreeze.isFrozen();\n$.scrollFreeze.isEnabled();\n```\n\n## Examples\n\nSee the demo included for a simple example.\n\n## Notes\n* This was never intended for mobile use and therefore was never tested on mobile devices. Although it may work on mobile if `useOverflow` has been set.\n* This script was created out of necessity when I was working on a single page application that automatically scrolled between sections. I needed to prevent the user's scroll events from interfering with the automated scrolling. \n\n\n## Author\n\n[Ryan Johnson](https://github.com/ryandrewjohnson)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryandrewjohnson%2Fjquery-scrollfreeze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryandrewjohnson%2Fjquery-scrollfreeze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryandrewjohnson%2Fjquery-scrollfreeze/lists"}