0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix problem with z-index

This commit is contained in:
alonso.torres 2024-01-05 15:32:26 +01:00
parent 77b886aa1a
commit 3702c054a8

View file

@ -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