mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
The Gradient panel's number fields kept an unfinished value when the panel switched to another stop, midpoint, freeform point or object with the same value. With stop 2 selected, typing `20+` into Opacity and then selecting stop 3 left `20+` in the field, and typing `1` with Enter gave stop 3 21% instead of 1%. Location, Angle, Aspect Ratio, Repeats and a freeform point's Opacity and Spread did the same. Each of these fields now passes what it edits to `NumberField::edit_target`: the gradient behind the active proxy (`Session::gradient_owner`), the selected objects and symbol part, and the selected stop, midpoint or point. When that key changes, the field drops the unfinished text and shows the new target's value. `StopOwner` derives `Eq` and `Hash` so it can be part of the key.