mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 04:38:19 +02:00
✨ Changes in selection feedback
This commit is contained in:
parent
aa584e6d35
commit
688ec2589a
5 changed files with 41 additions and 27 deletions
|
@ -306,8 +306,11 @@
|
|||
(fn [{:keys [modifiers objects]}]
|
||||
(let [keys (->> modifiers
|
||||
(keys)
|
||||
(filter #(or (= frame-id %)
|
||||
(= frame-id (get-in objects [% :frame-id])))))]
|
||||
(filter (fn [id]
|
||||
(let [shape (get objects id)]
|
||||
(or (= frame-id id)
|
||||
(and (= frame-id (:frame-id shape))
|
||||
(not (= :frame (:type shape)))))))))]
|
||||
(select-keys modifiers keys)))
|
||||
workspace-modifiers-with-objects
|
||||
=))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue