Skip to main content
Ejecuta cualquier Skill en Manus
con un clic

drag-patterns

Estrellas2
Forks0
Actualizado23 de mayo de 2026 a las 09:27

Hard-won patterns for implementing drag interactions (move / resize / pan) in Vue components — especially inside CSS-transformed containers like the image-tagger overlay, the chart pan/zoom canvas, the resize-handle column splitter, and the panel resizer. Use whenever wiring `mousedown` / `mousemove` / `mouseup` (or pointer-equivalents) for anything the user has to drag. Covers window-level listeners, separating listener cleanup from state, pointer-events kill during drag, screen-pixel math, percentage positioning for overlays, async-reload races, and image-dimension guards.

Instalación

Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.

SKILL.md
readonly