scroll two pages at a time in double page mode

This commit is contained in:
Bala Clark 2010-07-10 14:35:35 +01:00
parent 48bddd7aa7
commit 3b27c1bfb8

View file

@ -5,7 +5,6 @@
Fo sho: Fo sho:
- Show a progress bar when buffering - Show a progress bar when buffering
- scroll two pages at a time in double page mode
- page controls - page controls
- thumbnail browser - thumbnail browser
- chrome frame - chrome frame
@ -259,7 +258,7 @@ function ComicBook(id, srcs, opts) {
*/ */
ComicBook.prototype.drawNextPage = function () { ComicBook.prototype.drawNextPage = function () {
if (pointer + 1 < pages.length) { if (pointer + 1 < pages.length) {
pointer += 1; pointer += (options.displayMode === "single") ? 1 : 2;
this.drawPage(); this.drawPage();
} }
}; };
@ -271,7 +270,7 @@ function ComicBook(id, srcs, opts) {
*/ */
ComicBook.prototype.drawPrevPage = function () { ComicBook.prototype.drawPrevPage = function () {
if (pointer > 0) { if (pointer > 0) {
pointer -= 1; pointer -= (options.displayMode === "single") ? 1 : 2;
this.drawPage(); this.drawPage();
} }
}; };