1
0
Fork 0
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:
Fred Chasen 2015-05-29 15:45:03 -04:00
parent 6785addc75
commit 812be32e71
8 changed files with 106 additions and 72 deletions

View file

@ -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);
};