mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix overlay remain open on frame change
This commit is contained in:
parent
f98512242a
commit
dc6afb46bf
1 changed files with 10 additions and 0 deletions
|
@ -274,6 +274,11 @@
|
||||||
|
|
||||||
(def select-prev-frame
|
(def select-prev-frame
|
||||||
(ptk/reify ::select-prev-frame
|
(ptk/reify ::select-prev-frame
|
||||||
|
ptk/UpdateEvent
|
||||||
|
(update [_ state]
|
||||||
|
(-> state
|
||||||
|
(dissoc :viewer-animation)
|
||||||
|
(assoc :viewer-overlays [])))
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [route (:route state)
|
(let [route (:route state)
|
||||||
|
@ -287,6 +292,11 @@
|
||||||
|
|
||||||
(def select-next-frame
|
(def select-next-frame
|
||||||
(ptk/reify ::select-next-frame
|
(ptk/reify ::select-next-frame
|
||||||
|
ptk/UpdateEvent
|
||||||
|
(update [_ state]
|
||||||
|
(-> state
|
||||||
|
(dissoc :viewer-animation)
|
||||||
|
(assoc :viewer-overlays [])))
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [route (:route state)
|
(let [route (:route state)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue