From aa6657bc570ebc0bfc76d9b9ecda682341ae7caa Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 13 Oct 2024 17:57:24 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12291 --- app/src/asset/pdf/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/asset/pdf/app.js b/app/src/asset/pdf/app.js index 860425a05..3adaaad43 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.