UNPKG

scroll-lock-body-2

Version:

scroll lock the body and remember the position

58 lines (32 loc) 1.34 kB
scrollLockBody # scrollLockBody ## Table of contents ### Functions - [disableScrollLock](README.md#disablescrolllock) - [enableScrollLock](README.md#enablescrolllock) - [getScrollbarWidth](README.md#getscrollbarwidth) - [isScrollLockEnabled](README.md#isscrolllockenabled) ## Functions ### disableScrollLock`Const`**disableScrollLock**(): *void* **Returns:** *void* Defined in: [index.ts:16](https://github.com/kunukn/scroll-lock-body-2/blob/988277c/src/index.ts#L16) ___ ### enableScrollLock ▸ `Const`**enableScrollLock**(): *void* **Returns:** *void* Defined in: [index.ts:4](https://github.com/kunukn/scroll-lock-body-2/blob/988277c/src/index.ts#L4) ___ ### getScrollbarWidth`Const`**getScrollbarWidth**(): *number* -------------------------------------------------------------------------- Bootstrap (v5.0.0): util/scrollBar.js Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) -------------------------------------------------------------------------- **Returns:** *number* Defined in: [index.ts:34](https://github.com/kunukn/scroll-lock-body-2/blob/988277c/src/index.ts#L34) ___ ### isScrollLockEnabled ▸ `Const`**isScrollLockEnabled**(): *boolean* **Returns:** *boolean* Defined in: [index.ts:24](https://github.com/kunukn/scroll-lock-body-2/blob/988277c/src/index.ts#L24)