0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 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

@ -19,6 +19,7 @@
- Fix error streen when uploading wrong SVG [#2995](https://github.com/penpot/penpot/issues/2995) - Fix error streen when uploading wrong SVG [#2995](https://github.com/penpot/penpot/issues/2995)
- Fix selecting children from hidden parent layers [Taiga #4934](https://tree.taiga.io/project/penpot/issue/4934) - Fix selecting children from hidden parent layers [Taiga #4934](https://tree.taiga.io/project/penpot/issue/4934)
- Fix problem when undoing multiple selected colors [Taiga #4920](https://tree.taiga.io/project/penpot/issue/4920) - Fix problem when undoing multiple selected colors [Taiga #4920](https://tree.taiga.io/project/penpot/issue/4920)
- Allow selection of empty board by partial rect [Taiga #4806](https://tree.taiga.io/project/penpot/issue/4806)
### :arrow_up: Deps updates ### :arrow_up: Deps updates

View file

@ -131,7 +131,10 @@
(or (not full-frame?) (or (not full-frame?)
(not= :frame (:type shape)) (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? overlaps?
(fn [shape] (fn [shape]