Vanessa 2024-10-13 17:57:24 +08:00
parent 50b97c0844
commit aa6657bc57

View file

@ -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.