mirror of
https://github.com/penpot/penpot.git
synced 2026-09-19 02:16:14 +00:00
🐛 Fix unexpected behavior on selection controls on non-rect like shapes.
This commit is contained in:
parent
c86b6b7b8f
commit
f099e0f90d
@ -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…
x
Reference in New Issue
Block a user