Ver código fonte

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

Vanessa 8 meses atrás
pai
commit
aa6657bc57
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      app/src/asset/pdf/app.js

+ 2 - 1
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.