0
Fork 0
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:
Alejandro Alonso 2022-12-15 10:10:04 +01:00 committed by Alonso Torres
parent 56870ad68e
commit e88d6d88a8
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,7 @@
# CHANGELOG # CHANGELOG
## 1.16.2-beta ## 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 ## 1.16.1-beta

View file

@ -22,7 +22,9 @@
(let [points (->> shape (let [points (->> shape
:position-data :position-data
(mapcat (comp gpr/rect->points position-data->rect)))] (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 (defn position-data-bounding-box
[shape] [shape]