Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/12291

Vanessaaa6657bc570e
diff --git a/app/src/asset/pdf/app.js b/app/src/asset/pdf/app.js
index 860425a052..3adaaad43a 100644
--- a/app/src/asset/pdf/app.js
+++ b/app/src/asset/pdf/app.js
@@ -1333,7 +1333,8 @@ class PDFViewerApplication {
if (stored?.page && viewOnLoad !== ViewOnLoad.INITIAL) {
hash =
`page=${stored.page}&zoom=${zoom || stored.zoom},` +
- `${stored.scrollLeft},${stored.scrollTop}`;
+ // NOTE https://github.com/siyuan-note/siyuan/issues/12291
+ `${stored.scrollLeft}${this.pdfId ? "" : "," + stored.scrollTop}`;
rotation = parseInt(stored.rotation, 10);
// Always let user preference take precedence over the view history.