mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
built
This commit is contained in:
parent
fa58463233
commit
3598484538
8 changed files with 5 additions and 8 deletions
File diff suppressed because one or more lines are too long
1
reader/js/epub.min.js
vendored
1
reader/js/epub.min.js
vendored
|
@ -5176,7 +5176,6 @@ EPUBJS.Pagination.prototype.pageFromCfi = function(cfi){
|
|||
index = EPUBJS.core.locationOf(cfi, this.locations, this.epubcfi.compare);
|
||||
// Get the page at the location just before the new one, or return the first
|
||||
pg = index-1 >= 0 ? this.pages[index-1] : this.pages[0];
|
||||
pg = this.pages[index];
|
||||
if(pg !== undefined) {
|
||||
// Add the new page in so that the locations and page array match up
|
||||
//this.pages.splice(index, 0, pg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue