🐛 Fix avoid flashing the move tool before activating the selected tool (#10291)

This commit is contained in:
Luis de Dios 2026-06-24 10:25:37 +02:00 committed by GitHub
parent a530cf0dec
commit 5ef8d35683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -318,11 +318,9 @@
(let [tool (-> (dom/get-current-target event)
(dom/get-data "tool")
(keyword))]
(st/emit! :interrupt (dw/clear-edition-mode))
;; Delay so anything that launched :interrupt can finish
(ts/schedule 100
#(st/emit! (dw/select-for-drawing tool))))))
(st/emit! :interrupt
(dw/clear-edition-mode)
(dw/select-for-drawing tool)))))
on-toggle-toolbar
(mf/use-fn