
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
封装原生 Touch events、MouseEvent 事件
npm install sao_move
传入要监听的对象即可
const elecomnt = this.$refs.app
new SaoMove(elecomnt, (e) => {
console.log(e)
})
{
"type": "touch",
"event": "start",
"identifier": 0,
"x": 204.41114807128906,
"y": 376.5450744628906,
"moving_x": 0,
"moving_y": 0,
"total_x": 0,
"total_y": 0,
"e": "原生事件"
}
| 字段 | 含义 | 备注 |
|---|---|---|
| type | 移动类型 | touch / mouse |
| event | 事件类型 | start / moving / stop |
| identifier | 触摸手指标识 | 数字标识,鼠标类型为0 |
| x | 实时x坐标 | |
| y | 实时y坐标 | |
| moving_x | 实时x位移 | |
| moving_y | 实时y位移 | |
| total_x | 累计x位移 | |
| total_y | 累计y位移 |
total_x,total_y是指从此次动作开始,到当前坐标的位移
moving_x,moving_x是指从上个坐标到当前坐标的实时位移
identifier通过identifier来区分每个手指单独的 start、moving、stop,多手指互不干扰
FAQs
鼠标、触摸处理类;封装原生 `Touch events`、`MouseEvent` 事件
The npm package sao_move receives a total of 0 weekly downloads. As such, sao_move popularity was classified as not popular.
We found that sao_move 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.