disable the strech button if in an auto zoom mode
This commit is contained in:
parent
f049aa9899
commit
81a5dc907f
3 changed files with 36 additions and 33 deletions
|
@ -105,7 +105,8 @@
|
||||||
background-position-x: -24px;
|
background-position-x: -24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cb-toolbar button.disabled {
|
#cb-toolbar button[disabled=disabled] {
|
||||||
|
cursor: auto;
|
||||||
background-position-x: -48px;
|
background-position-x: -48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
Fo sho:
|
Fo sho:
|
||||||
- fix last page loading bug
|
- fix last page loading bug
|
||||||
- disable the strech button if in an auto zoom mode
|
|
||||||
- improve prev/next buttons, only show them when they can possibly work (not at beginning/end)
|
- improve prev/next buttons, only show them when they can possibly work (not at beginning/end)
|
||||||
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
||||||
- write bin scripts to minify & join all js
|
- write bin scripts to minify & join all js
|
||||||
|
@ -629,6 +628,9 @@ function ComicBook(id, srcs, opts) {
|
||||||
// revert page mode back to double if it was auto switched for a double page spread
|
// revert page mode back to double if it was auto switched for a double page spread
|
||||||
if (is_double_page_spread) { options.displayMode = "double"; }
|
if (is_double_page_spread) { options.displayMode = "double"; }
|
||||||
|
|
||||||
|
// disable the fit width button if needed
|
||||||
|
$("button.cb-fit-width").attr("disabled", (options.zoomMode === "fitWidth"));
|
||||||
|
|
||||||
// user callback
|
// user callback
|
||||||
if (typeof options.afterDrawPage === "function") {
|
if (typeof options.afterDrawPage === "function") {
|
||||||
options.afterDrawPage(pointer + 1);
|
options.afterDrawPage(pointer + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue