mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
retain currentLocationCfi after gotoCfi
This commit is contained in:
parent
f6c2b04836
commit
3e88ee40af
9 changed files with 17 additions and 5 deletions
File diff suppressed because one or more lines are too long
3
reader/js/epub.min.js
vendored
3
reader/js/epub.min.js
vendored
|
@ -6866,6 +6866,9 @@ EPUBJS.Renderer.prototype.gotoCfi = function(cfi){
|
|||
if(range) {
|
||||
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
||||
this.page(pg);
|
||||
|
||||
// Reset the current location cfi to requested cfi
|
||||
this.currentLocationCfi = cfi.str;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue