mirror of
https://github.com/penpot/penpot.git
synced 2026-06-25 16:52:11 +00:00
🐛 Fix avoid flashing the move tool before activating the selected tool (#10291)
This commit is contained in:
parent
a530cf0dec
commit
5ef8d35683
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user