An open API service indexing awesome lists of open source software.

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

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.