0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 08:45:34 -05:00

🐛 Fix move boards with comments

This commit is contained in:
Alejandro Alonso 2023-01-10 13:55:41 +01:00
parent a7dfda515b
commit 81a95d362c

View file

@ -162,7 +162,7 @@
build-move-event
(fn [comment-thread]
(let [frame (get objects (:frame-id comment-thread))
modifiers (get object-modifiers (:frame-id comment-thread))
modifiers (get-in object-modifiers [(:frame-id comment-thread) :modifiers])
frame' (gsh/transform-shape frame modifiers)
moved (gpt/to-vec (gpt/point (:x frame) (:y frame))
(gpt/point (:x frame') (:y frame')))