Skip to content

Commit 2e75b21

Browse files
committed
hide nested bounding boxes on scale
1 parent 40a7eab commit 2e75b21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/renderer/element/impl/container/canvas.cljs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@
7676
[:<>
7777
(when (and select-tool-active (contains? #{:default :select :scale} state))
7878
[:<>
79-
(for [el selected-elements]
80-
(when (:bounds el)
81-
^{:key (str (:id el) "-bounds")}
82-
[overlay/bounding-box (:bounds el) false]))
79+
(when (not= state :scale)
80+
(for [el selected-elements]
81+
(when (:bounds el)
82+
^{:key (str (:id el) "-bounds")}
83+
[overlay/bounding-box (:bounds el) false])))
8384

8485
(for [el hovered-ids]
8586
(when (:bounds el)

0 commit comments

Comments
 (0)