Skip to content

@sv/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 @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


1.7.2 (2024-10-15)

Fixes

  • search input slots not working

1.7.1 (2024-10-15)

Fixes

  • peers are not copied

1.7.0 (2024-10-15)

Features

  • update components package

1.6.1 (2024-09-04)

Fixes

  • make combobox filterable

...


Full changelog