https://github.com/dwolfhub/scroll-lock
Lock the scroll position of the page
https://github.com/dwolfhub/scroll-lock
Last synced: 3 months ago
JSON representation
Lock the scroll position of the page
- Host: GitHub
- URL: https://github.com/dwolfhub/scroll-lock
- Owner: dwolfhub
- License: mit
- Created: 2015-07-31T01:51:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-31T02:46:40.000Z (over 10 years ago)
- Last Synced: 2025-02-22T02:09:23.670Z (11 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scroll-lock
An AMD module to lock the scroll position of the page. Cross-browser support emphasized.
## browser support
- IE8+
- Chrome
- Firefox
- Safari
- Android 4+
- iOS 7+
## install
To install the package via bower:
`bower install scroll-lock`
## methods
`ScrollLock.lock()`
Locks the current window position and disables scrolling in either direction.
`ScrollLock.unlock()`
Unlocks the window position and allows scrolling again.