From b9e3e9f7d4953ad4771998bacafd90461540553d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 15 Apr 2016 17:25:51 +0200 Subject: [PATCH] Now you can draw n figures without selecting again the tool --- src/uxbox/ui/workspace/drawarea.cljs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uxbox/ui/workspace/drawarea.cljs b/src/uxbox/ui/workspace/drawarea.cljs index 9fc32e28e9..312ee35893 100644 --- a/src/uxbox/ui/workspace/drawarea.cljs +++ b/src/uxbox/ui/workspace/drawarea.cljs @@ -89,8 +89,7 @@ (let [{:keys [x y]} (gpt/divide @wb/mouse-canvas-a @wb/zoom-l) props {:x1 x :y1 y :x2 (+ x 100) :y2 (+ y 100)} shape (ush/initialize shape props)] - (rs/emit! (uds/add-shape shape) - (udw/select-for-drawing nil)))) + (rs/emit! (uds/add-shape shape)))) (defn- initialize-shape-drawing "A drawing handler for generic shapes such as rect, circle, text, etc." @@ -103,8 +102,7 @@ (let [shape @drawing-shape shpos @drawing-position shape (ush/resize shape shpos)] - (rs/emit! (uds/add-shape shape) - (udw/select-for-drawing nil)) + (rs/emit! (uds/add-shape shape)) (reset! drawing-position nil) (reset! drawing-shape nil)))]