mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-22 14:49:51 -04:00
Make range available when reporting current location
This commit is contained in:
1 parent
abf95a4e9a
commit
b1346280fd
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user