mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 20:46:22 +01:00
The Appearance panel kept a plug-in slider's drag value under the row's appearance item, effect index and parameter name only. When the selection changed while the button was down and the drag ended off the editor, the value stayed behind: the next object with the same effect, or the same object selected again, showed it in place of its own. The drag's interaction also stayed open, since the slider never saw its release. The kept value now carries the document and selection it was made for and the UI pass that last drew its row, and it is dropped when either changes or a pass does not draw the row. A drag that a pass did not draw (its row or the panel closed), or that ended with no value to keep, keeps what it previewed as one undo step and ends its interaction. The app checks this at the end of every pass, after the panels, as it does for the 3D panel's drags. Any other interaction is left open. The inline slider test now ends its drag on a value the canvas had not previewed yet, and checks that the drag keeps that exact value.