mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
Part of #8296. DrawSnap::press gathered the snap targets from all the art in the window on every press, while a hover reuses them until the document's revision, what is left out, the window or a snapping option changes. Every drawing tool hovers over the point it then presses, so each Pen click (and each press of the shape, Type, Artboard and Scissors tools) walked the whole document again for targets equal to the ones it already held. A press now gathers only when that key differs from the one the targets were gathered for, the same check hover makes. The drag a press starts still keeps the press's targets. The Scissors test that pressed over a different document under the hover's revision now gives that document a new revision, since the engine moves the revision with every change to the document.