mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 21:57:04 +00:00
When a click's press lands in one face and its release in the next, the drag fills both. The bucket now notes the fill every face the drag crosses had before the press, the release included, so a double-click or triple-click that follows on such a face compares that fill instead of the one the first click gave it. This also holds when the release of the last click crosses into the clicked face. When the first click makes the Live Paint group, or merges the selection into a selected group, the crossed face counts with the fill it was made with: a kept face's paint from the merged group (an unplaced gradient fixed to its fit), else the fill Make gives it, the topmost fill that draws of the front-most source path over it that has one. A selected group's edges no longer count as source paths. A double-click whose two clicks land on two joined edges now paints the edges joined through the other edge its clicks painted: livePaint.strokeEdge takes `through`, edge ids that the join counts as drawing with `match`, and the tool passes that edge. When the second press lands on the next edge and is released back on the first, the double-click matches the first edge's stroke paint from before the first click. A press that the view tools take (held Space, the middle button), or that holds Cmd/Ctrl and goes to the lent selection tool, now counts as a press that paints nothing, so the clicks around it are not taken for one triple-click's: the session tells the tool through the new Tool::press_elsewhere. The tool doc, docs/mcp.md and the progress-doc line now say that a click records an undo step only when it changes a paint, and that a triple-click paints the faces that have the clicked face's fill (and the edges that draw with the clicked edge's stroke paint) with the bucket's paint. Follows #7291.