From 5ef8d35683f98e44e2e8aee818a0314fce5cb3bd Mon Sep 17 00:00:00 2001 From: Luis de Dios Date: Wed, 24 Jun 2026 10:25:37 +0200 Subject: [PATCH] :bug: Fix avoid flashing the move tool before activating the selected tool (#10291) --- frontend/src/app/main/ui/workspace/top_toolbar.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/top_toolbar.cljs b/frontend/src/app/main/ui/workspace/top_toolbar.cljs index 615e0921b1..8236d21ee3 100644 --- a/frontend/src/app/main/ui/workspace/top_toolbar.cljs +++ b/frontend/src/app/main/ui/workspace/top_toolbar.cljs @@ -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