mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 11:36:11 +02:00
🐛 Fix problem creating manual overlay interactions
This commit is contained in:
parent
e369b70aeb
commit
2fa81474b9
2 changed files with 15 additions and 7 deletions
|
@ -206,14 +206,16 @@
|
|||
(watch [_ _ _]
|
||||
(let [interactions (ctsi/update-interaction (:interactions shape) index update-fn)
|
||||
interaction (nth interactions index)]
|
||||
(rx/of (dwsh/update-shapes
|
||||
[(:id shape)]
|
||||
(fn [shape]
|
||||
(assoc shape :interactions interactions))
|
||||
options)
|
||||
(rx/of
|
||||
(dwsh/update-shapes
|
||||
[(:id shape)]
|
||||
(fn [shape]
|
||||
(-> shape
|
||||
(update :interactions ctsi/update-interaction index update-fn)))
|
||||
options)
|
||||
|
||||
(when (some? (:destination interaction))
|
||||
(dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options))))))))
|
||||
(when (some? (:destination interaction))
|
||||
(dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options))))))))
|
||||
|
||||
(defn remove-all-interactions-nav-to
|
||||
"Remove all interactions that navigate to the given frame."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue