mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 18:26:11 +02:00
🐛 Allow selection of empty board by partial rect
This commit is contained in:
parent
05e13ad05f
commit
36583d1171
2 changed files with 5 additions and 1 deletions
|
@ -131,7 +131,10 @@
|
|||
|
||||
(or (not full-frame?)
|
||||
(not= :frame (:type shape))
|
||||
(gsh/rect-contains-shape? rect shape))))
|
||||
(and (d/not-empty? (:shapes shape))
|
||||
(gsh/rect-contains-shape? rect shape))
|
||||
(and (empty? (:shapes shape))
|
||||
(gsh/overlaps? shape rect))1)))
|
||||
|
||||
overlaps?
|
||||
(fn [shape]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue