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:
parent
05e13ad05f
commit
36583d1171
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue