mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 19:06:12 +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
|
||||
[{: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)
|
||||
transform (geom/rotation-matrix shape)]
|
||||
[:g.controls {:transform transform}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue