mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 22:49:30 +00:00
🐛 Fix strage cursor behaviour after clicking viewport with text pool
This commit is contained in:
parent
56870ad68e
commit
e88d6d88a8
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user