mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
fix chapter end left position
This commit is contained in:
parent
0690ad97d0
commit
868b057e02
1 changed files with 2 additions and 6 deletions
|
@ -143,8 +143,6 @@ FP.Chapter.prototype.calcPages = function(){
|
|||
this.displayedPages = Math.ceil(this.totalWidth / this.spreadWidth);
|
||||
|
||||
|
||||
|
||||
|
||||
//-- I work for Chrome
|
||||
//this.iframe.contentDocument.body.scrollLeft = 200;
|
||||
|
||||
|
@ -188,8 +186,7 @@ FP.Chapter.prototype.prevPage = function(){
|
|||
|
||||
FP.Chapter.prototype.chapterEnd = function(){
|
||||
this.chapterPos = this.displayedPages;
|
||||
this.leftPos = this.totalWidth - this.colWidth;
|
||||
|
||||
this.leftPos = this.spreadWidth * (this.displayedPages - 1);//this.totalWidth - this.colWidth;
|
||||
this.setLeft(this.leftPos);
|
||||
}
|
||||
|
||||
|
@ -218,7 +215,6 @@ FP.Chapter.prototype.replaceLinks = function(callback){
|
|||
|
||||
}.bind(this));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue