mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 21:49:10 +00:00
🐛 Fix rendering glitch when exiting focus mode
This commit is contained in:
parent
009d805394
commit
ae282eb6e2
@ -27,6 +27,7 @@
|
|||||||
[app.main.data.workspace.pages :as-alias dwpg]
|
[app.main.data.workspace.pages :as-alias dwpg]
|
||||||
[app.main.data.workspace.specialized-panel :as-alias dwsp]
|
[app.main.data.workspace.specialized-panel :as-alias dwsp]
|
||||||
[app.main.data.workspace.undo :as dwu]
|
[app.main.data.workspace.undo :as dwu]
|
||||||
|
[app.main.data.workspace.viewport-wasm :as dwvw]
|
||||||
[app.main.data.workspace.zoom :as dwz]
|
[app.main.data.workspace.zoom :as dwz]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.router :as rt]
|
[app.main.router :as rt]
|
||||||
@ -602,6 +603,10 @@
|
|||||||
(assoc :workspace-pre-focus (:workspace-local state)))
|
(assoc :workspace-pre-focus (:workspace-local state)))
|
||||||
state))))
|
state))))
|
||||||
|
|
||||||
|
ptk/EffectEvent
|
||||||
|
(effect [_ state _]
|
||||||
|
(dwvw/maybe-sync-workspace-local-viewport! state))
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
(let [stopper (rx/filter #(or (= ::toggle-focus-mode (ptk/type %))
|
(let [stopper (rx/filter #(or (= ::toggle-focus-mode (ptk/type %))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user