Make range available when reporting current location

This commit is contained in:
John Factotum
2023-04-26 17:26:13 +08:00
parent abf95a4e9a
commit b1346280fd
+1 -1
View File
@@ -91,7 +91,7 @@ export class View {
const tocItem = this.#tocProgress.getProgress(index, range)
const pageItem = this.#pageProgress.getProgress(index, range)
const cfi = this.getCFI(index, range)
this.emit?.({ type: 'relocated', ...progress, tocItem, pageItem, cfi })
this.emit?.({ type: 'relocated', ...progress, tocItem, pageItem, cfi, range })
}
#onLoad(doc, index) {
// set language and dir if not already set