PDF: Öffnen an der gespeicherten Seite zeigt kein „Weit gescrollt“ mehr (sw CACHE v168)
Some checks failed
Build and push Docker image / build (push) Successful in 16s
Test / test (push) Successful in 11m29s
Test / e2e (push) Failing after 1m31s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrwnslz 2026-11-04 14:35:03 +01:00
parent 066d0052d2
commit 0d712a7f21
2 changed files with 6 additions and 2 deletions

View file

@ -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]));

View file

@ -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',