Compare commits
2 Commits
mai/picass
...
mai/picass
| Author | SHA1 | Date | |
|---|---|---|---|
| 29e221e080 | |||
| c7dfbe010c |
@@ -617,6 +617,11 @@ function startDrag(e, kind, id) {
|
||||
if (state.tool) return; // a tool is armed; don't hijack
|
||||
e.stopPropagation();
|
||||
state.selection = { kind, id };
|
||||
// Render immediately so the inspector reflects the new selection from
|
||||
// pointerdown — independent of whether the drag-completion render at
|
||||
// the end of onUp runs. (Previously, the inspector only updated if
|
||||
// pointerup completed cleanly; any throw in onUp left it stale.)
|
||||
render();
|
||||
|
||||
const svg = /** @type {SVGSVGElement} */ ($("#canvas"));
|
||||
const start = svgPoint(e);
|
||||
|
||||
Reference in New Issue
Block a user