aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-14 20:41:43 +0200
committeruser <user@clank>2026-08-14 20:41:43 +0200
commitd7423c412cb9c5f5349d1947ece8bb3496d7e222 (patch)
treecf08166c4c2011bb495752e581b80abcddfdfa89 /docs
parentsl0ppty: the status line says what the pointer is on (diff)
downloadslosh-d7423c412cb9c5f5349d1947ece8bb3496d7e222.tar.gz
slosh-d7423c412cb9c5f5349d1947ece8bb3496d7e222.tar.xz
slosh-d7423c412cb9c5f5349d1947ece8bb3496d7e222.zip
sl0ppty: drag the crossing to resize both ways
Where a boundary between rows crosses one between columns, that crossing is now a handle: drag it and both move, following the pointer in x and y at once. The two never overlap in the tree, which is the whole difficulty. A column boundary belongs to a split inside one row and stops where the row boundary begins; there is no cell that is part of both. So a corner is found by adjacency instead — the cells of a row gap that have a column gap running into them from above or below — and that has to be computed across splits rather than within one, which is why it is a pass over the tree rather than something draw_node could notice on its way past. It moves every boundary that meets there, not one of them. In a two-by-two the column boundary above the row and the one below are separate splits that happen to line up, and moving only the one you were nearest would leave a step in what reads as a single line. Both get the same delta. The corner's hit is registered after the two gap hits it sits on, so those cells resolve to the corner rather than to whichever gap drew last: it is one target, not an overlap. Resting on it arms *both* boundaries rather than lighting the cell under the pointer, because the hint is supposed to show what is about to move. Finding the corners needed the gap rectangle, which draw_node had been working out inline. It is one function now, shared by the drawing, the hit and the corner search — three things that have to agree about where a gap is down to the cell, and would not have for long.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions