Commit Graph
3 Commits
Author SHA1 Message Date
Asger Geel Weirsøe 437b4fadd2 No card flicker during sort: body.wt-sorting freezes item transitions; hover lift gated behind @media (hover:hover)
Touch no longer triggers the hover lift (which flickered while dragging), and
transitions/hover-transform on sortable items are frozen during an active drag.
2026-06-14 19:25:00 +02:00
Asger Geel Weirsøe 4388f02f18 weirsoe-ui.js: mobile drag lifts a floating clone + wider auto-scroll zone
Touch drag now lifts the card into a position:fixed .wt-drag-clone (shadow +
scale) that follows the finger, with a dimmed placeholder reordering underneath
— reads as actually moving the card. Edge auto-scroll zone widened to 130px with
a minimum speed so it reliably scrolls on mobile.
2026-06-14 18:40:00 +02:00
Asger Geel Weirsøe a04a3c0970 weirsoe-ui.js: reusable sortable (desktop DnD + clean drag image + mobile touch) and copy-link
Generic drag-and-drop sortable list + copy-to-clipboard, extracted from the wish
app so any consumer can reuse it. [data-wt-sortable] + data-order-url on a
container; [data-item-id] children; .drag-handle affordance. Desktop uses native
DnD with a solid drag image (no smeared translucent ghost); mobile uses
long-press to lift + drag-reorder + edge auto-scroll. Plus .drag-handle/.wt-dragging CSS.
2026-06-14 18:10:00 +02:00