PDF: Öffnen an der gespeicherten Seite zeigt kein „Weit gescrollt“ mehr (sw CACHE v168)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
066d0052d2
commit
0d712a7f21
2 changed files with 6 additions and 2 deletions
|
|
@ -630,7 +630,11 @@ async function renderPdf(arrayBuffer, contentEl, scaleOverride, pivotPage) {
|
||||||
return _pdfResult(pdf, extras);
|
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;
|
pdfCurrentPage = pivot;
|
||||||
|
|
||||||
const byEl = new Map(entries.map(e => [e.wrapper, e]));
|
const byEl = new Map(entries.map(e => [e.wrapper, e]));
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* diora service worker — caches the app shell for offline use.
|
* diora service worker — caches the app shell for offline use.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const CACHE = 'diora-v167';
|
const CACHE = 'diora-v168';
|
||||||
const SHELL = [
|
const SHELL = [
|
||||||
'/static/css/app.css',
|
'/static/css/app.css',
|
||||||
'/static/js/app/01-core.js',
|
'/static/js/app/01-core.js',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue