# @samline/scroll-lock

> Page scroll locking for modals, drawers and menus: nested locks, scrollbar gap compensation, scroll position restoration and the iOS Safari workaround, for vanilla JavaScript, any framework and plain HTML.

Latest version **1.0.0** (published 2026-11-19) · MIT license · 0 weekly downloads

_The full health report (score, vulnerabilities, README, dependency tree, version history) is being computed; this document will grow once it lands._

## Install

```sh
npm install @samline/scroll-lock
pnpm add @samline/scroll-lock
yarn add @samline/scroll-lock
bun add @samline/scroll-lock
```

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-11-19 |
| First published | 2026-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 309.1 KB |
| Author | Samuel Olvera |
| Maintainers | samline |
| Keywords | scroll-lock, body-scroll-lock, prevent-scroll, disable-scroll, modal, drawer, ios-safari, scrollbar |

## Links

- npm: https://www.npmjs.com/package/@samline/scroll-lock
- Repository: https://github.com/samline/scroll-lock
- Homepage: https://samline.github.io/scroll-lock/
- npm.io page: https://npm.io/package/@samline/scroll-lock

---
_Source: https://npm.io/package/@samline/scroll-lock · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
