# Designing Pointer Touch Pen Input

> Use when a UI accepts mouse, trackpad, touch, stylus, or other direct pointing input and target size, hover, precision, gestures, cancellation, palm rejection, or input switching materially affects operation.

- Skill: `nolane-x/designing-pointer-touch-pen-input` (Agent Skill)
- Install (CLI): `npx get-skill add nolane-x/designing-pointer-touch-pen-input`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nolane-x/designing-pointer-touch-pen-input/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Nolane-x (https://skillmd.com/u/nolane-x)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/nolane-x/designing-pointer-touch-pen-input

---


# Designing Pointer, Touch, and Pen Input

## Overview
Direct input modalities share coordinates but not capability. Mouse precision and hover, finger occlusion and coarse targeting, trackpad gestures, and pen precision/pressure must not be collapsed into one pointer assumption.

## Parent Contract
**Required parent:** `routing-ui-work`.

Require device classes, input modalities, target environment, and applicable accessibility target. When multiple inputs can coexist, preserve state across modality switches.

## Decision Model
For every interactive target define visual affordance, hit geometry, spacing, activation event, cancellation path, and feedback. Use the coarsest realistic input to set minimum operability; precision-only affordances must have alternatives. Never depend on hover for essential labels, content, or actions because touch and many assistive contexts have none.

Separate preview from commit. Pointer-down can provide pressed feedback, but consequential activation usually commits on an event that permits cancellation when the pointer moves away. For touch, account for finger occlusion, edge reach, system gestures, scrolling conflicts, and accidental double activation. For pen, decide whether pressure, tilt, barrel button, hover, and palm rejection are enhancements or essential semantics. If essential, provide an equivalent for devices without them when the product promises cross-input support.

Gestures need a vocabulary and ownership model. Pinch, swipe, rotate, long-press, and edge gestures can conflict with platform or accessibility behavior. Custom gestures require discoverable alternatives. Drag interactions route to the dedicated drag skill.

Input switching must preserve selection/focus where reasonable: touching a canvas should not destroy keyboard selection; moving a mouse after stylus use should not unexpectedly change tool mode.

## Evidence
Inspect actual CSS/device target geometry, pointer cancellation, coarse-pointer layouts, touch scrolling, pen behavior when supported, zoom, orientation, and platform conventions. WCAG target/gesture rules are evidence obligations on applicable web surfaces, not approximate aesthetic suggestions.

## Output Contract
Return a `direct-input-contract` with `target_rules[]`, `activation_and_cancel`, `hover_policy`, `touch_reach_and_occlusion`, `gesture_map[]`, `pen_capabilities`, `concurrent_input_rules[]`, `system_gesture_conflicts[]`, `alternatives[]`, and `runtime_tests[]`.

## Failure Traps
- Desktop hover menu copied to touch unchanged.
- Tiny icon hit targets because the SVG is visually small.
- Destructive action firing on pointer-down.
- Long-press as the only way to discover a function.
- Stylus-specific control silently missing for mouse/touch users.
- Input switch resetting selection or mode.
- Enlarged hit areas that overlap neighboring controls and create ambiguity.

Choose interaction geometry from capability and consequence, not from visual density alone.

## V6 Multi-Pointer Input Protocol
Build a **modality equivalence map** for semantic actions across mouse/trackpad, touch, pen, and coarse pointer. Identify every **hover-only trap** where information or action appears only with hover and supply a non-hover path. Define **pen barrel intent** and eraser/pressure/tilt behavior where used; stylus buttons must not unexpectedly trigger destructive or mode-changing actions.

Set a **palm-rejection boundary** for drawing/writing surfaces and decide how touch interacts while pen is active—pan/zoom, ignored, or secondary control. Every precision gesture needs a **coarse-pointer fallback** with larger targets or alternative controls when pointer accuracy drops.

### Falsification
Switch modalities mid-task, use touch without hover, rest a palm while drawing, and operate with increased pointer imprecision. If semantics or recoverability change, input design is inconsistent.

### Recovery
Separate gesture from semantic action, add explicit mode/control alternatives, enlarge targets, and make modality switching preserve state rather than resetting the tool.

