mirror of
https://github.com/penpot/penpot.git
synced 2026-02-14 23:52:56 +00:00
Use inner-rect for calculate icon selection handlers.
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
(on-mouse-up [vid event]
|
||||
(dom/stop-propagation event)
|
||||
(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
|
||||
[:g.controls
|
||||
[:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"
|
||||
|
||||
Reference in New Issue
Block a user