@sv/scroll-lock
A reference page.
A small library for consitent scroll-locking across browsers.
Used in a-blur.
Installation
Make sure your project is set up with access to the registry as described in Setup.
bun add @sv/scroll-lock Usage
import { ScrollLock } from '@sv/scroll-lock';
const scrollLock = new ScrollLock();
// lock page scrolling
scrollLock.enable();
// unlock page scrolling
scrollLock.disable();
Changelog
@sv/scroll-lock
0.1.0-dev.0 (2025-10-17)
Breaking Changes
- Move chart and animation elemnts into own package
2.0.0-dev.0 (2025-10-16)
Breaking Changes
- Move chart and animation elemnts into own package
1.1.1 (2025-04-15)
Fixes
- Use overflow-hidden for scroll-locking
1.0.2 (2024-11-14)
Fixes
- Make accordion content inert if closed
1.0.1 (2024-06-28)
Fixes
- allow elements option not working correctly
1.0.0 (2024-05-26)
0.1.8
Patch Changes
- 00fd8a1: Update scrollLock to apply passed options
0.1.7
Patch Changes
- e904e0e: disable scrolllock when element unmounts
0.1.6
Patch Changes
- 96146e2: fix notification
Full changelog