Lock and unlock page scrolling
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/589163/1889704/ScrollLocker.js을(를) 사용하여 포함하는 라이브러리입니다.
ScrollLocker is a lightweight utility script used to lock and restore page scrolling.
Once loaded into the page, call lock() and unlock() directly on the global scrollLocker object.
Call this when opening a modal, overlay, or sidebar:
scrollLocker.lock();
Call this when closing the modal or restoring normal page interaction:
scrollLocker.unlock();
scrollLocker.isLocked (Boolean): Indicates whether page scrolling is currently locked (true if locked, false otherwise).scrollLocker.lock() while already locked will not re-trigger or duplicate styles. Calling scrollLocker.unlock() when unlocked has no effect.