Skip to content

feat(pressure): 支持触摸笔压力感知的拖拽交互 - #41

Merged
wszxdhr merged 2 commits into
mainfrom
feature/pressure
May 16, 2026
Merged

wszxdhr merged 2 commits into
mainfrom
feature/pressure

Conversation

@wszxdhr

@wszxdhr wszxdhr commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 添加 normalizedPointerInput 中 pressure 字段的支持
  • 在 GesturePointerSnapshot 中传播 pressure 信息
  • 新增 normalizePressure 函数,支持标准 PointerEvent.pressure 和 webkitForce(Apple 设备)
  • 演示应用添加压力敏感拖拽交互,通过 CSS 变量动态响应触摸压力

Testing

  • npm run lint
  • npm run test

@wszxdhr
wszxdhr merged commit 4ff446d into main May 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant