1
0
Fork 0
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:
Fred Chasen 2014-10-11 13:33:53 -04:00
parent f6c2b04836
commit 3e88ee40af
9 changed files with 17 additions and 5 deletions

View file

@ -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;
}
}
};

File diff suppressed because one or more lines are too long

2
build/epub.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -6865,6 +6865,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;
}
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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;
}
}
};

View file

@ -945,6 +945,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;
}
}
};