mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +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)
|
(let [tool (-> (dom/get-current-target event)
|
||||||
(dom/get-data "tool")
|
(dom/get-data "tool")
|
||||||
(keyword))]
|
(keyword))]
|
||||||
(st/emit! :interrupt (dw/clear-edition-mode))
|
(st/emit! :interrupt
|
||||||
|
(dw/clear-edition-mode)
|
||||||
;; Delay so anything that launched :interrupt can finish
|
(dw/select-for-drawing tool)))))
|
||||||
(ts/schedule 100
|
|
||||||
#(st/emit! (dw/select-for-drawing tool))))))
|
|
||||||
|
|
||||||
on-toggle-toolbar
|
on-toggle-toolbar
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user