mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 03:46:11 +02:00
🐛 Fix unexpected behavior on selection controls on non-rect like shapes.
This commit is contained in:
parent
c86b6b7b8f
commit
f099e0f90d
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
(mf/defc controls
|
(mf/defc controls
|
||||||
[{:keys [shape zoom on-resize on-rotate] :as props}]
|
[{:keys [shape zoom on-resize on-rotate] :as props}]
|
||||||
(let [{:keys [x y width height rotation]} shape
|
(let [{:keys [x y width height rotation]} (geom/shape->rect-shape shape)
|
||||||
radius (if (> (max width height) handler-size-threshold) 6.0 4.0)
|
radius (if (> (max width height) handler-size-threshold) 6.0 4.0)
|
||||||
transform (geom/rotation-matrix shape)]
|
transform (geom/rotation-matrix shape)]
|
||||||
[:g.controls {:transform transform}
|
[:g.controls {:transform transform}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue