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
|
@ -6866,6 +6866,9 @@ EPUBJS.Renderer.prototype.gotoCfi = function(cfi){
|
||||||
if(range) {
|
if(range) {
|
||||||
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
||||||
this.page(pg);
|
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
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
|
@ -6865,6 +6865,9 @@ EPUBJS.Renderer.prototype.gotoCfi = function(cfi){
|
||||||
if(range) {
|
if(range) {
|
||||||
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
||||||
this.page(pg);
|
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
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) {
|
if(range) {
|
||||||
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
||||||
this.page(pg);
|
this.page(pg);
|
||||||
|
|
||||||
|
// Reset the current location cfi to requested cfi
|
||||||
|
this.currentLocationCfi = cfi.str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -945,6 +945,9 @@ EPUBJS.Renderer.prototype.gotoCfi = function(cfi){
|
||||||
if(range) {
|
if(range) {
|
||||||
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
pg = this.render.getPageNumberByRect(range.getBoundingClientRect());
|
||||||
this.page(pg);
|
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