From d6d38d207d60ac1e873fe0b3242f3e45d3e192db Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 28 Aug 2016 10:22:19 +0300 Subject: [PATCH] Disable close path anchor on free drawing mode. --- src/uxbox/main/ui/workspace/drawarea.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/uxbox/main/ui/workspace/drawarea.cljs b/src/uxbox/main/ui/workspace/drawarea.cljs index 70ecb71b7..726d04570 100644 --- a/src/uxbox/main/ui/workspace/drawarea.cljs +++ b/src/uxbox/main/ui/workspace/drawarea.cljs @@ -89,11 +89,12 @@ [:g (-> (assoc shape :drawing? true) (shapes/render-component)) - [:circle {:cx x - :cy y - :r 5 - :fill "red" - :on-click on-click}]]))) + (when-not (:free shape) + [:circle {:cx x + :cy y + :r 5 + :fill "red" + :on-click on-click}])]))) ;; --- Drawing Initialization