Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@humandetail/scroller
Advanced tools
Install with npm:
npm i @humandetail/scroller
Install with yarn:
yarn add @humandetail/scroller
import Scroller from '@humandetail/scroller'
const scroller = new Scroller('.content', {
height: '500px'
})
参数 | 类型 | 初始值 | 说明 |
---|---|---|---|
wheelStep | number | 20 | 应用于每个鼠标滚轮步骤的滚动量 |
width | string | auto | 容器的宽度 |
height | string | 100vh | 容器的高度 |
scrollbarWidth | number | 10 | 滚动条的宽度 |
buttonSize | number | 10 | 滚动条按钮的尺寸 |
trackWidth | number | 10 | 滚动条轨道的宽度 |
thumbWidth | number | 10 | 滚动条滑块的宽度 |
resize | boolean | true | 是否监听窗口的 resize 事件 |
observe | boolean | true | 是否监听 DOM 变化 |
reachOffset | object | { top: number; right: number; bottom: number; left: number; } | 触底/触顶偏移量 |
button | boolean | true | 是否需要上下按钮 |
styles | object | { bar?: Partial<CSSStyleDeclaration>; button?: Partial<CSSStyleDeclaration>; track?: Partial<CSSStyleDeclaration>; thumb?: Partial<CSSStyleDeclaration>; } | 滚动条样式 |
MIT License © 2019-PRESENT Humandetail
FAQs
A plugin that adds custom scrollbars to the DOM
We found that @humandetail/scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.