Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@any-touch/swipe
Advanced tools
快划识别器.
npm i -S @any-touch/swipe
// 只加载rotate识别器(旋转)
import Core from '@any-touch/core';
import swipe from '@any-touch/swipe';
const at = new Core(el);
at.use(swipe, 参数)
// 旋转
at.on('swipe', (event) => {
// event包含位置/速度/方向等信息
});
名称 | 数据类型 | 默认值 | 说明 |
---|---|---|---|
name | String | 'swipe' | 自定义事件名称 |
pointLength | Number | 1 | 支持的触点数, 可支持多指触发 |
threshold | Number | 10 | 触点离开前, 按压移动的距离超过10px才能触发事件 |
velocity | Number | 0.3 | 快划超过30px/ms才触发事件 |
FAQs
any-touch的识别器, 用来识别划动手势.
We found that @any-touch/swipe 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.