Files
bookorbit/patches/@embedpdf__plugin-scroll@2.14.4.patch
T
neon 00951219b2 fix(reader): render PDF pages on initial layout
Defer EmbedPDF's Vue scroll readiness signal until the page DOM is committed so initial visibility metrics trigger rendering.
2026-07-12 05:00:06 +00:00

14 lines
564 B
Diff

diff --git a/dist/vue/index.js b/dist/vue/index.js
index e84f7ff256267d787787b779f51f69e7586fbe63..ce58323b4028f164037d3b045331572fb75b055c 100644
--- a/dist/vue/index.js
+++ b/dist/vue/index.js
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
if (!plugin || !docId || !layout) return;
plugin.setLayoutReady(docId);
},
- { immediate: true }
+ { immediate: true, flush: "post" }
);
return (_ctx, _cache) => {
return scrollerLayout.value ? (openBlock(), createElementBlock("div", mergeProps({