mirror of
https://github.com/penpot/penpot.git
synced 2026-05-22 00:13:41 +00:00
Merge pull request #8943 from penpot/ladybenko-13949-fix-resize-call
🐛 Fix initializing guards in viewport loading
This commit is contained in:
commit
83e9f85ccf
@ -376,7 +376,7 @@
|
|||||||
(wasm.api/request-render "content"))))))
|
(wasm.api/request-render "content"))))))
|
||||||
|
|
||||||
(mf/with-effect [vport]
|
(mf/with-effect [vport]
|
||||||
(when @canvas-init?
|
(when (and @canvas-init? @initialized?)
|
||||||
(wasm.api/resize-viewbox (:width vport) (:height vport))))
|
(wasm.api/resize-viewbox (:width vport) (:height vport))))
|
||||||
|
|
||||||
(mf/with-effect [@canvas-init? preview-blend]
|
(mf/with-effect [@canvas-init? preview-blend]
|
||||||
@ -403,11 +403,11 @@
|
|||||||
(wasm.api/set-focus-mode focus)))))
|
(wasm.api/set-focus-mode focus)))))
|
||||||
|
|
||||||
(mf/with-effect [vbox zoom]
|
(mf/with-effect [vbox zoom]
|
||||||
(when (and @canvas-init? initialized?)
|
(when (and @canvas-init? @initialized?)
|
||||||
(wasm.api/set-view-box zoom vbox)))
|
(wasm.api/set-view-box zoom vbox)))
|
||||||
|
|
||||||
(mf/with-effect [background]
|
(mf/with-effect [background]
|
||||||
(when (and @canvas-init? initialized?)
|
(when (and @canvas-init? @initialized?)
|
||||||
(wasm.api/set-canvas-background background)))
|
(wasm.api/set-canvas-background background)))
|
||||||
|
|
||||||
(mf/with-effect [@canvas-init? hover-grid? @hover-top-frame-id]
|
(mf/with-effect [@canvas-init? hover-grid? @hover-top-frame-id]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user