From f7e5cb4bb2862d42cf655ccf2a300703c89600bc Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Wed, 13 Sep 2023 12:35:11 +0200 Subject: [PATCH] :bug: Fix selection hover --- frontend/src/app/worker/selection.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/worker/selection.cljs b/frontend/src/app/worker/selection.cljs index 110a9d9e1c..0a55eac20f 100644 --- a/frontend/src/app/worker/selection.cljs +++ b/frontend/src/app/worker/selection.cljs @@ -192,12 +192,12 @@ overlaps? (fn [shape] (if (and (false? using-selrect?) (empty? (:fills shape))) - (do - (case (:type shape) - ;; If the shape has no fills the overlap depends on the stroke - :rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape))) - :circle (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape))) - :path (overlaps-path? shape))) + (case (:type shape) + ;; If the shape has no fills the overlap depends on the stroke + :rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape))) + :circle (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape))) + :path (overlaps-path? shape) + (gsh/overlaps? shape rect)) (gsh/overlaps? shape rect))) overlaps-parent?