From c8d397568010712cae481598e07081679f4c9e94 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 19 Apr 2022 14:20:42 +0200 Subject: [PATCH] :bug: Fix multiselected elements drag problem on empty areas --- frontend/src/app/main/ui/workspace/viewport/actions.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/actions.cljs b/frontend/src/app/main/ui/workspace/viewport/actions.cljs index 111a0fa91..c11e910ce 100644 --- a/frontend/src/app/main/ui/workspace/viewport/actions.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/actions.cljs @@ -112,10 +112,7 @@ (when (and left-click? (not mod?) (not shift?) - (not @space?) - (or (not @hover) - (= :frame (:type @hover)) - (some #(contains? selected %) @hover-ids))) + (not @space?)) (dom/prevent-default bevent) (dom/stop-propagation bevent) (st/emit! (dw/start-move-selected))))))) @@ -258,7 +255,7 @@ ;; We store this so in Firefox the middle button won't do a paste of the content (reset! disable-paste true) (timers/schedule #(reset! disable-paste false))) - + (st/emit! (dw/finish-panning) (dw/finish-zooming))))))