mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user