mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 07:30:24 +00:00
🐛 Fix overlay remain open on frame change
This commit is contained in:
parent
f98512242a
commit
dc6afb46bf
@ -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…
x
Reference in New Issue
Block a user