mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Add header and footer
Also allow getting next location, which is useful for the footer
This commit is contained in:
@@ -162,9 +162,9 @@ export class View {
|
||||
await this.annotations.add(annotation, true)
|
||||
}
|
||||
}
|
||||
#onRelocated(range, index, fraction) {
|
||||
#onRelocated(range, index, fraction, size) {
|
||||
if (!this.#sectionProgress) return
|
||||
const progress = this.#sectionProgress.getProgress(index, fraction)
|
||||
const progress = this.#sectionProgress.getProgress(index, fraction, size)
|
||||
const tocItem = this.#tocProgress.getProgress(index, range)
|
||||
const pageItem = this.#pageProgress.getProgress(index, range)
|
||||
const cfi = this.getCFI(index, range)
|
||||
|
||||
Reference in New Issue
Block a user