
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@deleteagency/page-locker
Advanced tools
On opening a modal window you have to prevent your main page from scrolling, so generally you can just set "overflow: hidden" on document.documentElement, but it won't work with iOS devices, so there is a need for a little bit tricky way via using "position: fixed" and setting the scroll position. So we can just use two simple methods to lock and unlock a page.
Use the package manager npm for installation.
$ npm install @deleteagency/page-locker
html {
&.is-blocked {
overflow: hidden;
}
&.is-blocked-touch {
position: fixed;
overflow-y: scroll;
width: 100%;
height: auto;
}
}
import { PageLocker } from '@deleteagency/page-locker';
const pageLocker = new PageLocker();
pageLocker.lock('modal');
Required
Type: string
Required
Type: string
FAQs
[Live Demo](https://delete-agency.github.io/page-locker/)
We found that @deleteagency/page-locker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.