Keep the shelf still while a piece is held #10

Merged
cmoriarty merged 3 commits from shelf-stays-still-while-held into main 2026-12-03 19:37:55 -05:00
Owner

Picking up a tray piece made the whole tray re-flow the instant it was picked up, because the drag action dropped the piece out of the shelf. This keeps the held piece in the shelf layer — its slot and every other slot stay reserved — and re-flows only at the drop. The held piece is drawn in the field section (excluded from the tray render, like a touch drag) following the pointer at full board size, so it returns to the same empty spot on a shelf drop.

Also:

  • the tray position indicator renders for coarse input only — a mouse tray scrolls silently
  • the drop rule is one shared releaseKind() used by the real drag release and the judge/test bridge, which also fixes desktop tray drops (a piece released inside the tray used to be left loose on the board, overlapping the tray)

OpenSpec: shelf-stays-still-while-held (spec deltas in the PR; will fold into main specs on archive).

Picking up a tray piece made the whole tray re-flow the instant it was picked up, because the drag action dropped the piece out of the shelf. This keeps the held piece in the shelf layer — its slot and every other slot stay reserved — and re-flows only at the drop. The held piece is drawn in the field section (excluded from the tray render, like a touch drag) following the pointer at full board size, so it returns to the same empty spot on a shelf drop. Also: - the tray position indicator renders for coarse input only — a mouse tray scrolls silently - the drop rule is one shared `releaseKind()` used by the real drag release and the judge/test bridge, which also fixes desktop tray drops (a piece released inside the tray used to be left loose on the board, overlapping the tray) OpenSpec: `shelf-stays-still-while-held` (spec deltas in the PR; will fold into main specs on archive).
MOVE_PIECE no longer leaves the piece out of the shelf: its slot and every other slot are reserved until the piece is actually dropped, so the tray stays put while you hold it and the piece returns to its own empty spot on a shelf drop. The shelf reflows only when the piece is dropped.

The held piece is drawn in the field section (unclipped by the tray), following the pointer at full board size.

Also: the scroll-position indicator is now a touch affordance only, so a mouse tray scrolls silently instead of showing the permanent bar.

And the fine-pointer drop rule now returns a piece released inside the tray to its slot (it previously treated the whole field as staged, so tray drops left pieces loose on the board): the drop rule is one shared releaseKind() used by both the drag release and the judge/test bridge.
The git/openspec/server restrictions in the openspec-flow block apply only during an orchestrated Braid run (an orchestrator work-driving steps). Outside one, git, openspec, servers and other tools are available normally.
Proposal, spec deltas, design and tasks for keeping the shelf still while a piece is held and for making the tray position indicator a touch affordance.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/brooke!10
No description provided.