mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 11:28:28 +02:00
✨ Fix interaction targets
This commit is contained in:
parent
a774f4d4fa
commit
2799c09294
2 changed files with 28 additions and 31 deletions
|
@ -384,7 +384,9 @@
|
|||
(rx/of (rt/nav screen pparams (assoc qparams :index index)))))))
|
||||
|
||||
(defn go-to-frame
|
||||
([frame-id] (go-to-frame frame-id nil))
|
||||
([frame-id]
|
||||
(go-to-frame frame-id nil))
|
||||
|
||||
([frame-id animation]
|
||||
(us/verify ::us/uuid frame-id)
|
||||
(us/verify (s/nilable ::cti/animation) animation)
|
||||
|
@ -414,8 +416,7 @@
|
|||
page-id (:page-id qparams)
|
||||
frames (get-in state [:viewer :pages page-id :frames])
|
||||
index (d/index-of-pred frames #(= (:id %) frame-id))]
|
||||
(when index
|
||||
(rx/of (go-to-frame-by-index index))))))))
|
||||
(rx/of (go-to-frame-by-index (or index 0))))))))
|
||||
|
||||
(defn go-to-frame-auto
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue