🐛 Fix bug on curve path edition mode.

This commit is contained in:
Andrey Antukh 2019-08-22 20:27:32 +02:00
parent f0230c346c
commit 12637bbfe4
2 changed files with 8 additions and 7 deletions

View file

@ -8,7 +8,7 @@
(:require
[cuerdas.core :as str :include-macros true]
[rumext.alpha :as mf]
[uxbox.main.data.workspace :as udw]
[uxbox.main.data.workspace :as dw]
[uxbox.main.geom :as geom]
[uxbox.main.refs :as refs]
[uxbox.main.store :as st]
@ -29,8 +29,8 @@
(common/on-mouse-down event shape selected))
(on-double-click [event]
(when selected?
(prn "on-double-click")
(st/emit! (udw/start-edition-mode (:id shape)))))]
(prn "path-component$on-double-click")
(st/emit! (dw/start-edition-mode (:id shape)))))]
[:g.shape {:class (when selected? "selected")
:on-double-click on-double-click
:on-mouse-down on-mouse-down}