@redbuck/scroll-locker

1.0.3 • Public • Published

lock scrolling Element when you open a popup

usage

import ScrollLocker from './lib/index.js';

const locker = new ScrollLocker();

// lock scrolling Element
locker.lock();
// release scrolling Element
locker.release();

解决滚动穿透问题

代码来自有赞UI库

Readme

Keywords

Package Sidebar

Install

npm i @redbuck/scroll-locker

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

114 kB

Total Files

10

Last publish

Collaborators

  • redbuck