scroll two pages at a time in double page mode
This commit is contained in:
parent
48bddd7aa7
commit
3b27c1bfb8
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue