don't show 'next' control on double page last pages
This commit is contained in:
parent
5cc82edc47
commit
11e7a9e980
1 changed files with 5 additions and 2 deletions
|
@ -644,7 +644,8 @@ function ComicBook(id, srcs, opts) {
|
|||
$(".cb-navigate.left").hide();
|
||||
$(".cb-navigate.right").show();
|
||||
}
|
||||
if (pointer === srcs.length-1) {
|
||||
|
||||
if (pointer === srcs.length-1 || (typeof page2 === "object" && pointer === srcs.length-2)) {
|
||||
$(".cb-navigate.left").show();
|
||||
$(".cb-navigate.right").hide();
|
||||
}
|
||||
|
@ -680,7 +681,9 @@ function ComicBook(id, srcs, opts) {
|
|||
|
||||
if (pointer + 1 < pages.length) {
|
||||
pointer += (options.displayMode === "single" || is_double_page_spread) ? 1 : 2;
|
||||
try {
|
||||
this.drawPage();
|
||||
} catch (e) {}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue