🐛 Keep selection handles visible when editing measures

Changing position, size or rotation from the measures menu triggered
the bounding box cloaking, which sets the transform to :move for one
second. While it lasts the selection outline and handles are hidden,
and since the size badge is now shown during :move, only the badge
stayed on screen. Stop cloaking from these inputs so the selection
stays visible while its geometry is edited.

Closes #12162

AI-assisted-by: claude-opus-5-5
This commit is contained in:
Eva Marco 2026-10-07 17:04:59 +02:00 committed by Alonso Torres
parent dc6fc46a36
commit 9218448b29

View File

@ -399,10 +399,8 @@
(mf/deps ids shapes)
(fn [value attr]
(if (or (string? value) (number? value))
(st/emit! (udw/trigger-bounding-box-cloaking ids)
(udw/update-dimensions-coalesced ids attr value))
(st/emit! (udw/trigger-bounding-box-cloaking ids)
(dwta/apply-token-from-input {:token (first value)
(st/emit! (udw/update-dimensions-coalesced ids attr value))
(st/emit! (dwta/apply-token-from-input {:token (first value)
:attrs #{attr}
:shape-ids ids})))))
@ -419,11 +417,8 @@
(mf/deps ids)
(fn [value attr]
(if (or (string? value) (number? value))
(do
(st/emit! (udw/trigger-bounding-box-cloaking ids))
(st/emit! (udw/update-positions ids {attr value})))
(st/emit! (udw/trigger-bounding-box-cloaking ids)
(dwta/apply-token-from-input {:token (first value)
(st/emit! (udw/update-positions ids {attr value}))
(st/emit! (dwta/apply-token-from-input {:token (first value)
:attrs #{attr}
:shape-ids ids})))))
@ -433,10 +428,8 @@
(fn [value]
(if (or (string? value) (number? value))
(let [value (fixed-decimal-value value)]
(st/emit! (udw/trigger-bounding-box-cloaking ids))
(st/emit! (udw/increase-rotation-coalesced ids value)))
(st/emit! (udw/trigger-bounding-box-cloaking ids)
(dwta/apply-token-from-input {:token (first value)
(st/emit! (dwta/apply-token-from-input {:token (first value)
:attrs #{:rotation}
:shape-ids ids})))))