mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
Fix wrong stata querying on shape moviment streams.
This commit is contained in:
parent
6ee5d08086
commit
84d87dcc4f
1 changed files with 5 additions and 3 deletions
|
@ -106,9 +106,11 @@
|
|||
(rx/on-value $ (fn [delta]
|
||||
(let [pageid (get-in @st/state [:workspace :page])
|
||||
selected (get-in @st/state [:workspace :selected])
|
||||
page (get-in @st/state [:pages-by-id pageid])]
|
||||
(doseq [sid (filter selected (:shapes page))]
|
||||
(rs/emit! (dw/move-shape sid delta))))))))
|
||||
shapes (->> (vals @shapes-by-id)
|
||||
(filter #(= (:page %) pageid))
|
||||
(filter (comp selected :id)))]
|
||||
(doseq [{:keys [id group]} shapes]
|
||||
(rs/emit! (dw/move-shape id delta))))))))
|
||||
|
||||
(defn selrect->rect
|
||||
[data]
|
||||
|
|
Loading…
Add table
Reference in a new issue