mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 14:38:23 +02:00
🐛 Fix problem with z-index
This commit is contained in:
parent
77b886aa1a
commit
3702c054a8
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@
|
||||||
|
|
||||||
[base-id idx-a idx-b]))
|
[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?]
|
[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)]
|
(let [[base-id index-a index-b] (get-base objects base-shape-id over-shape-id)]
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
[0 0])]
|
[0 0])]
|
||||||
|
|
||||||
(if (= z-index-a z-index-b)
|
(if (= z-index-a z-index-b)
|
||||||
(< index-a index-b)
|
(> index-a index-b)
|
||||||
(< z-index-a z-index-b))))))
|
(< z-index-a z-index-b))))))
|
||||||
|
|
||||||
(defn sort-z-index
|
(defn sort-z-index
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue