Fitts Law Pointer Acceleration 标志

Fitts Law Pointer Acceleration

社区
Deibler
fitts-law-pointer-acceleration

Use this skill when the question involves cursor speed, pointer acceleration curves, or interaction with input devices that vary in precision (mouse, trackpad, stylus, touchscreen, eye-tracking). Trigger when designing for varied input devices, building drag interactions, designing scrubbers / sliders / handles, or analyzing why a UI feels "fiddly." Sub-aspect of `fitts-law`; read that first if you haven't already.

概览

发布者Deibler
代码仓库universal-design-principles
技能名称fitts-law-pointer-acceleration
星标数
9
复刻数
3
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Deibler 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Fitts Law Pointer Acceleration AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/fitts-law-pointer-acceleration
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Deibler/universal-design-principles.git /tmp/universal-design-principles
mkdir -p .claude/skills
cp -r /tmp/universal-design-principles/plugins/interaction-and-control-principles/skills/fitts-law-pointer-acceleration .claude/skills/fitts-law-pointer-acceleration
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Fitts Law Pointer Acceleration,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Fitts Law Pointer Acceleration。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Fitts Law Pointer Acceleration 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Fitts's Law and pointer acceleration

The mouse and trackpad are not "raw" inputs — operating systems apply acceleration curves that translate physical movement into cursor displacement. Fast physical motion produces disproportionately fast cursor motion; slow physical motion produces precise, slow cursor motion. This curve interacts with Fitts's Law in ways that affect how target size and distance are perceived.

What pointer acceleration does

A non-accelerated cursor maps physical motion to screen motion 1:1. To cross 1000 pixels, the user must move the mouse 1000 mouse-equivalent units. Fast or slow physical motion makes no difference to the resulting distance.

An accelerated cursor varies the multiplier based on physical speed:

  • Slow physical motion → low multiplier (e.g., 0.5×). Used for precise positioning over small targets.
  • Fast physical motion → high multiplier (e.g., 3–8×). Used for crossing large screen distances quickly.

The acceleration curve is what lets a single mouse on a 4K display traverse the full screen without lifting and re-anchoring (a problem 1990s mice without acceleration had).

For Fitts's Law, this means:

  • Distance is partly free. Long traversals are accelerated, so movement time grows much less than the linear formula predicts.
  • Target size still matters. Once the user is near the target, they slow down for fine positioning, and target size dominates again.
  • Trackpads and mice have different curves. Same Fitts's task, different time outcomes.

Implications for UI design

1. Distance matters less than naive Fitts's Law suggests on accelerated pointers

A toolbar at the top of a 1440px-wide window vs. one halfway down: the difference in actual cursor travel time is smaller than the geometric distance suggests. Don't sacrifice layout sense to "place everything close together" — acceleration absorbs much of the cost.

2. Target size matters more than naive Fitts's Law suggests near the target

When the cursor decelerates for fine positioning, small targets become disproportionately hard. A 16×16 button is much harder than a 24×24 button — more than the 50% size increase would suggest, because deceleration phase amplifies precision cost.

The takeaway: when in doubt, prefer bigger targets to closer targets. Acceleration handles distance; nothing handles fine-positioning except size.

3. Drag operations are sensitive to acceleration

A drag-and-drop interaction asks the user to move while pressing the button. Acceleration is still active, so a small physical motion can become a large cursor motion. This causes:

  • Overshoot on rapid drags. The user releases past the target.
  • Jitter on fine drags. Slow drags feel "sticky" or imprecise as the curve transitions.

Mitigations:

  • Provide visible drop zones that are larger than the dragged item's footprint. The user has slop room.
  • Snap-to-grid or snap-to-target for positioning interactions. Reduces precision burden.
  • Hold-modifier for fine control. Hold Shift (or similar) to disable acceleration during drag. Common in drawing and layout tools.

4. Sliders and scrubbers benefit from gain control

A volume slider, a video scrubber, a date-range picker: the user is dragging to a precise value. With raw acceleration, large values are easy to skip past.

Patterns:

  • Variable gain on slider drag. Drag near the slider track for fast scrubbing; drag away from the track (off-axis) for fine scrubbing. iOS scrubbers use this.
  • Snap-to-tick for slider values that should land on integers or other discrete values.
  • Display the current value during drag so the user can correct without lifting.

5. Different input devices, different curves

The same web app is used with:

  • Desktop mouse — moderate acceleration, medium precision.
  • Trackpad — high acceleration, lower precision (small physical surface), gestures.
  • Stylus / pen — low/no acceleration, high precision.
  • Touchscreen — no acceleration (1:1), but finger contact width adds imprecision.
  • Eye-tracking — low precision, no fine positioning, dwell-based selection.

A UI that works on a 27" monitor with a precise mouse may be unusable with a trackpad on a 13" laptop. Test both.

For accessibility:

  • Switch devices (single-button accessibility input) — every interactive element must be reachable through scanning, not pointer acquisition.
  • Sip-and-puff and other adaptive devices — same.

Worked examples

Example 1: a slider with click-to-position

html
<input type="range" min="0" max="100" value="50" />

Native <input type="range"> works across input devices. The user can click anywhere on the track to jump to that value (no drag required); drag the thumb for fine adjustment; tap arrow keys for precise stepping. All of this is built in.

For custom sliders:

  • Make the track full-width clickable (not just the thumb).
  • Make the thumb hit area ≥ 24×24 (often the visible thumb is smaller, but the hit area extends).
  • Support arrow keys for keyboard increment.

Example 2: a draggable list item

html
<li draggable="true" class="task">
  <span class="drag-handle" aria-label="Drag to reorder">⋮⋮</span>
  Task name
</li>

The drag handle is visually small but should have a 32×32+ hit area. During drag:

  • Show a visible placeholder where the item will drop (large drop target).
  • Display drop indicators between rows.
  • Provide a keyboard alternative (e.g., arrow keys to reorder) for users who can't drag.

Example 3: a color picker

A 256×256 color square asks for very fine positioning (each pixel = a different color). Pointer acceleration makes this hard.

Mitigations:

  • Provide numeric inputs (RGB / HSL / HEX) for users who need precision.
  • Provide preset palette swatches for common selections.
  • Allow Shift+click (or another modifier) for fine-position mode.

Example 4: pinch-and-zoom (touch)

Touch has no acceleration, but two-finger gestures benefit from velocity-aware behavior:

  • Slow pinch = precise zoom (small zoom factor change per pixel).
  • Fast pinch = rapid zoom (larger zoom factor change per pixel).

Implementations: track pinch velocity; multiply zoom delta by a function of velocity.

Anti-patterns

  • Custom sliders without keyboard support. A drag-only slider is unusable for keyboard, switch-device, and many assistive-tech users. Always support arrow-key increment.
  • Tiny drag handles. A 16×16 drag handle on a list row. The user can't reliably grab it; reordering becomes painful.
  • Drag-only reordering. Reordering that requires drag-and-drop with no keyboard alternative. Inaccessible by default.
  • No snap on positioning. A drag-to-arrange canvas with no grid, no snap-to-edge, no align-with-neighbor. Every placement requires fine positioning that pointer acceleration sabotages.
  • Hover-precision interactions. A hover-only menu where the dropdown is below the trigger and the user must traverse a wedge-shaped path to reach the items. The trackpad user, with high acceleration, overshoots into adjacent menu items. Either use click-to-open or design wider safe traversal areas.

Heuristics

  1. Test on a trackpad. If your interaction requires a mouse to be usable, it's broken for ~half your users.
  2. Test with arrow keys. Every interactive element should respond meaningfully to keyboard alternatives. (This is also accessibility.)
  3. The fine-positioning audit. Walk through every interaction that asks for precision. Is there a coarser alternative (typed value, snap, increment buttons)?

Related sub-skills

  • fitts-law (parent).
  • fitts-law-touch-targets — touch has no acceleration but its own precision constraints.
  • affordance — drag handles need visible affordance.
  • accessibility-operable (process plugin) — pointer-precision interactions must have non-pointer alternatives.
  • mapping (cognition) — sliders and scrubbers map control motion to value change; mapping must be intuitive.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Fitts Law Pointer Acceleration AI 技能有什么作用?

Use this skill when the question involves cursor speed, pointer acceleration curves, or interaction with input devices that vary in precision (mouse, trackpad, stylus, touchscreen, eye-tracking). Trigger when designing for varied input devices, building drag interactions, designing scrubbers / sliders / handles, or analyzing why a UI feels "fiddly." Sub-aspect of `fitts-law`; read that first if you haven't already.

为什么在 TypingMind 中使用 Fitts Law Pointer Acceleration?

因为您只需安装一次,就能搭配任何模型使用。Fitts Law Pointer Acceleration 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Fitts Law Pointer Acceleration?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/fitts-law-pointer-acceleration。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Fitts Law Pointer Acceleration?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Fitts Law Pointer Acceleration 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Fitts Law Pointer Acceleration 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Fitts Law Pointer Acceleration AI 技能免费吗?

Deibler 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇