mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 22:49:01 -05:00
🐛 Fix strage cursor behaviour after clicking viewport with text pool
This commit is contained in:
parent
56870ad68e
commit
e88d6d88a8
2 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# CHANGELOG
|
||||
|
||||
## 1.16.2-beta
|
||||
- Fix strage cursor behaviour after clicking viewport with text pool [Github #2447](https://github.com/penpot/penpot/issues/2447)
|
||||
|
||||
## 1.16.1-beta
|
||||
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
(let [points (->> shape
|
||||
:position-data
|
||||
(mapcat (comp gpr/rect->points position-data->rect)))]
|
||||
(-> points (gpr/points->selrect))))
|
||||
(if (empty? points)
|
||||
(:selrect shape)
|
||||
(-> points (gpr/points->selrect)))))
|
||||
|
||||
(defn position-data-bounding-box
|
||||
[shape]
|
||||
|
|
Loading…
Add table
Reference in a new issue