🐛 Allow selection of empty board by partial rect

This commit is contained in:
alonso.torres 2023-03-03 14:34:50 +01:00
parent 05e13ad05f
commit 36583d1171
2 changed files with 5 additions and 1 deletions

View file

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