Better overlays interactions on boards inside boards

This commit is contained in:
Pablo Alba 2022-11-03 13:11:17 +01:00 committed by Andrés Moya
parent 58dbe21544
commit 1affb53a26
9 changed files with 595 additions and 314 deletions

View file

@ -121,9 +121,9 @@
(rx/concat
(rx/of (dch/update-shapes [(:id shape)]
(fn [shape]
(let [new-interaction (ctsi/set-destination
ctsi/default-interaction
destination)]
(let [new-interaction (-> ctsi/default-interaction
(ctsi/set-destination destination)
(assoc :position-relative-to (:id shape)))]
(update shape :interactions
ctsi/add-interaction new-interaction)))))
(when (and (not (connected-frame? objects (:id frame)))