From 3702c054a8e9d22490cfc3b9c9e1a987011567fb Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 5 Jan 2024 15:32:26 +0100 Subject: [PATCH] :bug: Fix problem with z-index --- common/src/app/common/types/shape_tree.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/shape_tree.cljc b/common/src/app/common/types/shape_tree.cljc index ab6f08e41..95204a523 100644 --- a/common/src/app/common/types/shape_tree.cljc +++ b/common/src/app/common/types/shape_tree.cljc @@ -193,7 +193,7 @@ [base-id idx-a idx-b])) -(defn is-shape-over-shape? +(defn- is-shape-over-shape? [objects base-shape-id over-shape-id bottom-frames?] (let [[base-id index-a index-b] (get-base objects base-shape-id over-shape-id)] @@ -218,7 +218,7 @@ [0 0])] (if (= z-index-a z-index-b) - (< index-a index-b) + (> index-a index-b) (< z-index-a z-index-b)))))) (defn sort-z-index