mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 12:48:31 +02:00
🐛 fix bad behaviour on hovering and click nested artboards
This commit is contained in:
parent
190d67a0cb
commit
f276910ce3
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue