mirror of
https://github.com/penpot/penpot.git
synced 2026-05-24 09:23:40 +00:00
Use inner-rect for calculate icon selection handlers.
This commit is contained in:
parent
9bda376bf4
commit
825eb4f8a2
@ -87,7 +87,7 @@
|
|||||||
(on-mouse-up [vid event]
|
(on-mouse-up [vid event]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(uuc/release-action! "ui.shape.resize"))]
|
(uuc/release-action! "ui.shape.resize"))]
|
||||||
(let [{:keys [x y width height]} (geom/outer-rect shape)]
|
(let [{:keys [x y width height]} (geom/inner-rect shape)]
|
||||||
(html
|
(html
|
||||||
[:g.controls
|
[:g.controls
|
||||||
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user