🐛 Fix strage cursor behaviour after clicking viewport with text pool

This commit is contained in:
Alejandro Alonso
2022-12-16 10:09:20 +01:00
committed by Alonso Torres
parent 56870ad68e
commit e88d6d88a8
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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
+3 -1
View File
@@ -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]