From 9f9bff17e5b20ae01dafbc80af6ac1984cbad228 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 21 Feb 2017 19:36:54 +0100 Subject: [PATCH] Properly handle selrect double initialization. This issue is happens when user emits mouse-up event out of workspace, that is not captured by stoper stream, and then user need to initialie and stop again the selrect. The double initialization is not an issue but that was raising unexpected exception and this commit fixes that. --- frontend/src/uxbox/main/ui/workspace/canvas.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/workspace/canvas.cljs b/frontend/src/uxbox/main/ui/workspace/canvas.cljs index 62a72c3ca4..c617c9c942 100644 --- a/frontend/src/uxbox/main/ui/workspace/canvas.cljs +++ b/frontend/src/uxbox/main/ui/workspace/canvas.cljs @@ -214,7 +214,7 @@ (st/emit! (uev/mouse-event :down ctrl? shift?))) (if drawing (st/emit! (udw/start-drawing drawing)) - (st/emit! (udw/start-selrect)))) + (st/emit! ::uev/interrupt (udw/start-selrect)))) (on-context-menu [event] (dom/prevent-default event) (dom/stop-propagation event)