♻️ Rename helper root-frame? to is-direct-child-of-root?

This commit is contained in:
Pablo Alba 2023-07-24 15:50:35 +02:00 committed by Andrey Antukh
parent 35f931c05a
commit 577c2b39dc
11 changed files with 21 additions and 21 deletions

View file

@ -34,7 +34,7 @@
[shape hover?]
(fn [event]
(when-not (or (cph/group-shape? shape)
(cph/root-frame? shape))
(cph/is-direct-child-of-root? shape))
(dom/prevent-default event)
(dom/stop-propagation event)
(st/emit! (dv/hover-shape (:id shape) hover?)))))
@ -42,7 +42,7 @@
(defn select-shape [shape]
(fn [event]
(when-not (or (cph/group-shape? shape)
(cph/root-frame? shape))
(cph/is-direct-child-of-root? shape))
(dom/stop-propagation event)
(dom/prevent-default event)
(cond