Skip to content

Commit 0895a04

Browse files
committed
minor bounding corners fix
1 parent a55d384 commit 0895a04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/renderer/tool/views.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
:cursor (or cursor "move")
5151
:on-pointer-up pointer-handler
5252
:on-pointer-down pointer-handler
53-
:on-pointer-move pointer-handler}] children)))
53+
:on-pointer-move pointer-handler}]
54+
children)))
5455

5556
(defn scale-handle
5657
[props]
@@ -104,7 +105,7 @@
104105
[bbox]
105106
(let [state @(rf/subscribe [::tool.subs/state])
106107
clicked-element @(rf/subscribe [::app.subs/clicked-element])
107-
bbox (min-bbox bbox)
108+
bbox (cond-> bbox (= state :idle) min-bbox)
108109
[min-x min-y max-x max-y] bbox
109110
[w h] (utils.bounds/->dimensions bbox)]
110111
[:g {:key :bounding-corners}

0 commit comments

Comments
 (0)