removed arrow key navigation code, custom navigation keys should be passed in the options object

This commit is contained in:
Bala Clark 2013-03-19 00:07:58 +01:00
parent 9a65d2c4aa
commit 8d9970d0b1

View file

@ -321,19 +321,7 @@ function ComicBook(id, srcs, opts) {
.attr("id", "cb-loading-overlay") .attr("id", "cb-loading-overlay")
.addClass("cb-control") .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() { ComicBook.prototype.renderControls = function() {
$(canvas) $(canvas)
@ -511,7 +499,7 @@ function ComicBook(id, srcs, opts) {
} }
}; };
} }
// loads pages in both directions so you don't have to wait for all pages // loads pages in both directions so you don't have to wait for all pages
// to be loaded before you can scroll backwards // to be loaded before you can scroll backwards
function preload(start, stop) { function preload(start, stop) {