mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Check if view is rendering before displaying, proper check promises
This commit is contained in:
parent
6785addc75
commit
812be32e71
8 changed files with 106 additions and 72 deletions
|
@ -154,7 +154,7 @@ EPUBJS.Paginate.prototype.next = function(){
|
|||
return this.q.enqueue(function(){
|
||||
this.scrollBy(this.layout.delta, 0);
|
||||
this.reportLocation();
|
||||
this.check();
|
||||
return this.check();
|
||||
});
|
||||
|
||||
// return this.page(this.currentPage + 1);
|
||||
|
@ -165,7 +165,7 @@ EPUBJS.Paginate.prototype.prev = function(){
|
|||
return this.q.enqueue(function(){
|
||||
this.scrollBy(-this.layout.delta, 0);
|
||||
this.reportLocation();
|
||||
this.check();
|
||||
return this.check();
|
||||
});
|
||||
// return this.page(this.currentPage - 1);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue