🐛 fix bad behaviour on hovering and click nested artboards

This commit is contained in:
Pablo Alba 2022-10-27 11:58:28 +02:00 committed by Andrés Moya
parent 190d67a0cb
commit f276910ce3
2 changed files with 5 additions and 4 deletions

View file

@ -183,11 +183,11 @@
(let [type-a (dm/get-in objects [id-a :type])
type-b (dm/get-in objects [id-b :type])]
(cond
(and bottom-frames? (= :frame type-a) (not= :frame type-b))
1
(and (= :frame type-a) (not= :frame type-b))
(if bottom-frames? 1 -1)
(and bottom-frames? (not= :frame type-a) (= :frame type-b))
-1
(and (not= :frame type-a) (= :frame type-b))
(if bottom-frames? -1 1)
(= id-a id-b)
0