feat: initialize page calculation on reader load

- Add pageCalculationResult and currentScrollPosition to UniversalReader type
- Add settings:changed event type for settings change notifications
- Call initializePageCalculation after reader ready in reader-shell.ts
- Add tabindex to reader-content for keyboard navigation focus
This commit is contained in:
2026-04-05 21:14:58 -04:00
parent caacf12003
commit ceab60e3d1
3 changed files with 21 additions and 2 deletions
+4
View File
@@ -1,4 +1,5 @@
import type { ReaderMetadata } from "../../types/reader";
import { PageCalculationResult } from "../ebook/page-calculator";
type ReaderType = "ebook" | "pdf" | "comic" | "manga";
@@ -6,6 +7,9 @@ interface UniversalReader {
type: "ebook";
cif: any;
currentSpineIndex: number;
currentPage?: number;
pageCalculationResult?: PageCalculationResult;
currentScrollPosition?: number;
}
interface PDFReader {