Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
tua-body-scroll-lock
Advanced tools
inspired by body-scroll-lock
顾名思义 tua-body-scroll-lock
是用来锁住 body
滚动的包。并且针对PC端
和移动端 ios
和 android
做了不同的处理,保证在各个端都可以完美使用。
$ npm i -S tua-body-scroll-lock
# OR
$ yarn add tua-body-scroll-lock
import { lock, unlock } from 'tua-body-scroll-lock'
// 禁止滑动后还需要内部可以滚动的元素(针对移动端ios处理)
const targetElement = document.querySelector("#someElementId");
lock(targetElement)
unlock(targetElement)
tips: PC端不需要targetElement; 不传targetElement也不想要控制台提示可以传
null
import { lock, unlock } from 'tua-body-scroll-lock'
lock()
unlock()
FAQs
🔐Body scroll locking that just works with everything
The npm package tua-body-scroll-lock receives a total of 50,673 weekly downloads. As such, tua-body-scroll-lock popularity was classified as popular.
We found that tua-body-scroll-lock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.