diff --git a/view.js b/view.js index da687a2..a36fac7 100644 --- a/view.js +++ b/view.js @@ -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