mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
cfi update to exclude markers, back button loaded events
This commit is contained in:
parent
a544cd63de
commit
964ef192a6
13 changed files with 237 additions and 69 deletions
|
@ -44,7 +44,7 @@ EPUBJS.Layout.Reflowable.prototype.calculatePages = function() {
|
|||
this.documentElement.style.width = "auto"; //-- reset width for calculations
|
||||
totalWidth = this.documentElement.scrollWidth;
|
||||
displayedPages = Math.round(totalWidth / this.spreadWidth);
|
||||
// console.log(totalWidth, this.spreadWidth)
|
||||
|
||||
return {
|
||||
displayedPages : displayedPages,
|
||||
pageCount : displayedPages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue