Make locations 10x bigger

Supposedly Kindle uses 150 bytes. Source:

https://www.mobileread.com/forums/showpost.php?s=6fbd6367bde3031320a271b6e3208445&p=1858934&postcount=3

However, since the way locations are calculated here is not exact
anyway, it seems more useful to use a smaller number that's more in line
with (1) the size of an actual page and (2) Foliate's old location size.
This commit is contained in:
John Factotum
2023-03-09 09:14:46 +00:00
committed by GitHub
parent 857a94daf3
commit 25909f41a1
+1 -1
View File
@@ -123,7 +123,7 @@ export class View {
if (book.splitTOCHref && book.getTOCFragment) {
const ids = book.sections.map(s => s.id)
this.#sectionProgress = new SectionProgress(book.sections, 150, 1600)
this.#sectionProgress = new SectionProgress(book.sections, 1500, 1600)
const splitHref = book.splitTOCHref.bind(book)
const getFragment = book.getTOCFragment.bind(book)
this.#tocProgress = new TOCProgress({