diff --git a/static/js/app/58-pdf.js b/static/js/app/58-pdf.js index 8fdd59e..5e7c99b 100644 --- a/static/js/app/58-pdf.js +++ b/static/js/app/58-pdf.js @@ -630,7 +630,11 @@ async function renderPdf(arrayBuffer, contentEl, scaleOverride, pivotPage) { return _pdfResult(pdf, extras); } - if (pivot > 1) entries[pivot - 1].wrapper.scrollIntoView({block: 'start'}); + // Opening at the saved page is no "scrolled far" (44-books.js). + if (pivot > 1) { + if (typeof _suppressScrollJumpDetect === 'function') _suppressScrollJumpDetect(); + entries[pivot - 1].wrapper.scrollIntoView({block: 'start'}); + } pdfCurrentPage = pivot; const byEl = new Map(entries.map(e => [e.wrapper, e])); diff --git a/static/js/sw.js b/static/js/sw.js index e617f7f..711116c 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v167'; +const CACHE = 'diora-v168'; const SHELL = [ '/static/css/app.css', '/static/js/app/01-core.js',