removed arrow key navigation code, custom navigation keys should be passed in the options object
This commit is contained in:
parent
9a65d2c4aa
commit
8d9970d0b1
1 changed files with 1 additions and 13 deletions
|
@ -321,19 +321,7 @@ function ComicBook(id, srcs, opts) {
|
|||
.attr("id", "cb-loading-overlay")
|
||||
.addClass("cb-control")
|
||||
};
|
||||
/*Using left arrow key*/
|
||||
$(document).keydown(function(e) {
|
||||
if (e.keyCode == 37) {
|
||||
ComicBook.prototype.drawPrevPage();
|
||||
}
|
||||
});
|
||||
|
||||
/*Using right arrow key*/
|
||||
$(document).keydown(function(e) {
|
||||
if (e.keyCode == 39) {
|
||||
ComicBook.prototype.drawNextPage();
|
||||
}
|
||||
});
|
||||
ComicBook.prototype.renderControls = function() {
|
||||
|
||||
$(canvas)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue