mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-27 17:01:38 +01:00
The background of a top-level frame with layers already acted like the
canvas: a press there starts a marquee inside it. A section and the
frames in it got none of that, so a drag anywhere in a section with
artboards picked up the section (or the artboard) and moved it, and
nothing in it could be marked out with the pointer.
- An unselected section with layers, and a frame with layers directly
in a section, now act like a top-level frame's background: a click
deselects, a drag draws a marquee. A section still moves by its name
label, or by its body once selected.
- A marquee started in a section selects among the section's layers as
one started on the page does among the page's (artboards it encloses
whole, else the layers it touches inside them); one started in an
artboard in a section selects inside that artboard.
- With Cmd/Ctrl held, a drag from such a background draws the deep
marquee instead of moving the frame or section, selecting the nested
layers it touches. This holds when the artboard or section is
selected too: with Cmd/Ctrl its background counts as background, and
the press doesn't fall back to dragging the selection. A Cmd/Ctrl
click there without a drag still selects the frame or section, and
without Cmd/Ctrl a selected section or artboard still drags by its
body.
The comment above board_background ("unless the frame is selected")
still describes the press without Cmd/Ctrl.
Tests: section_marquee_tests.