0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 12:01:19 -05:00

Merge pull request #2650 from ryanbreen/comment-move-fix

🐛 Fix moving comment threads
This commit is contained in:
Andrey Antukh 2022-12-09 23:31:04 +01:00 committed by GitHub
commit 28f1e671cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,10 +123,10 @@
page-id (:id page)
objects (wsh/lookup-page-objects state page-id)
new-frame-id (if (nil? frame-id)
(ctst/frame-id-by-position objects {:x new-x :y new-y})
(ctst/frame-id-by-position objects (gpt/point new-x new-y))
(:frame-id thread))
thread (assoc thread
:position {:x new-x :y new-y}
:position (gpt/point new-x new-y)
:frame-id new-frame-id)
changes