Keep the shelf still while a piece is held #10
Loading…
Reference in a new issue
No description provided.
Delete branch "shelf-stays-still-while-held"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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).