mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 12:28:31 +02:00
♻️ Rename helper root-frame? to is-direct-child-of-root?
This commit is contained in:
parent
35f931c05a
commit
577c2b39dc
11 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue