Skip to content

@atrium-ui/scroll-lock

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.

Terminal window
pnpm add @atrium-ui/scroll-lock

Usage

import { ScrollLock } from '@atrium-ui/scroll-lock';
const scrollLock = new ScrollLock();
// lock page scrolling
scrollLock.enable();
// unlock page scrolling
scrollLock.disable();

Changelog


@atrium-ui/scroll-lock

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