gestures
Build Responsive Drag and Swipe Interactions
Gesture interfaces can lag behind touch input, jump on release, or conflict with scrolling. This skill guides direct tracking, velocity-aware release, and interruptible interactions.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "gestures" from https://skillstore.io/skills/emilkowalski-gestures.md and its manifest at https://skillstore.io/api/skills/emilkowalski-gestures/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“gestures”。 My swipeable card follows the pointer slowly and ignores quick flicks.
预期结果:
- Tracking: update a motion value or the element transform directly, without easing or per-move React state.
- Release: evaluate both travel distance and release velocity before dismissing.
- Cancellation: return quickly with a spring when neither threshold is met.
正在使用“gestures”。 Buttons inside my small Vaul drawer trigger dragging, and the drawer feels slow.
预期结果:
- Exclude interactive children from dragging with the Vaul no-drag attribute.
- For a small floating drawer, consider approximately 200 milliseconds instead of the full-sheet 500-millisecond timing.
- Keep overlay, height, and content timing consistent, then verify touch behavior on a real phone.
正在使用“gestures”。 How should swipe interactions behave when reduced motion is enabled?
预期结果:
Keep direct pointer tracking. Reduce momentum, bounce, and decorative movement. On release, use a short position or opacity change instead of a bouncy spring.
安全审计
安全All 24 static findings are false positives: Markdown formatting caused 23 command-execution alerts, and the URL is a Vaul documentation link. No evidence found of shell execution, data exfiltration, or prompt injection in the reviewed SKILL.md. The file provides gesture implementation guidance and illustrative frontend snippets.
风险因素
⚙️ 外部命令 (23)
🌐 网络访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/emilkowalski-gestures/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/emilkowalski-gestures?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/emilkowalski-gestures?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/emilkowalski-gestures/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/emilkowalski-gestures.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
emilkowalski. (2026). gestures security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/emilkowalski-gestures/audits/1BibTeX 引用
@techreport{emilkowalski-emilkowalski-gestures-2026,
author = {emilkowalski},
title = {gestures security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/emilkowalski-gestures/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "gestures security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "emilkowalski"
date-released: "2026-11-08"
url: "https://skillstore.io/skills/emilkowalski-gestures/audits/1"
identifiers:
- type: other
value: "skillstore:emilkowalski-gestures:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Improve swipe dismissal
Refine a swipeable card with direct tracking, fast-flick dismissal, and quick snap-back when release thresholds are not met.
Review mobile drawer behavior
Evaluate drawer timing, overlay synchronization, touch targets, interactive children, and reduced-motion behavior before release.
Diagnose gesture regressions
Use the touch checklist to investigate scroll conflicts, accidental drags, interrupted animations, and differences between desktop simulation and phones.
试试这些提示
Explain tracking and release phases for a swipeable card. Identify when direct movement, springs, and velocity should apply.
Review this Motion component: [component]. Add distance-based and velocity-based swipe dismissal, drag resistance, and quick snap-back without per-move React state.
Review this Vaul drawer: [component]. Check overlay progress, interactive child exclusions, floating-drawer timing, touch targets, and reduced-motion behavior.
Analyze this gesture implementation and recording observations: [details]. Diagnose lag, release jumps, and interruption failures. Propose focused changes and real-phone regression checks.
最佳实践
- Separate direct tracking from release physics and derive linked visuals from the same drag progress.
- Prefer an established drawer library when it covers the interaction, and verify focus trapping and Escape dismissal.
- Test on real phones with scrolling, interrupted gestures, interactive children, and reduced-motion settings.
避免
- Apply a spring during pointer tracking or update React state for every pointer movement.
- Dismiss only by distance while ignoring fast flicks and release velocity.
- Use keyframe animations on draggable elements or animate linked overlays independently of drag progress.
常见问题
What does this skill provide?
Does this skill install Motion or Vaul?
When should I use Vaul instead of custom dragging?
Why does my dragged element trail the pointer?
How does it address accessibility?
Does the skill verify behavior automatically?
开发者详情
作者
emilkowalski许可证
未知
Skillstore 修订
r1
版本提示
作者未声明版本。
仓库
https://github.com/emilkowalski/skills/tree/5206a950b715e0cabe7043ea0b2304332b91494e/skills/gestures引用
c993c6abcbffafea2683d7748b53b3dfaf438415
维护新鲜度
2026/11/9
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md