mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-21 20:28:51 +00:00
A live edit changes the document without an undo step, so the tool was not told about it. Circles found while a preview moved the second segment stayed cached under the same segment key, and a click after the preview was canceled drew the cached circle instead of one touching the segment where it is again. A first segment picked during a preview kept its old shape the same way. The cache key now holds the shapes of the first segment and of the segments a circle may touch, so moving along an unchanged segment still reuses the search. The first segment is forgotten when its shape no longer matches the document, and a press on the second segment follows the segments as they are at the release; a pressed segment that is gone leaves nothing to touch.