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.