From 8d9970d0b1f27f75ddab5d632e0c51cbf6f1dce9 Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Tue, 19 Mar 2013 00:07:58 +0100 Subject: [PATCH] removed arrow key navigation code, custom navigation keys should be passed in the options object --- lib/ComicBook.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/ComicBook.js b/lib/ComicBook.js index 31741a8..639a109 100755 --- a/lib/ComicBook.js +++ b/lib/ComicBook.js @@ -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) @@ -511,7 +499,7 @@ function ComicBook(id, srcs, opts) { } }; } - + // loads pages in both directions so you don't have to wait for all pages // to be loaded before you can scroll backwards function preload(start, stop) {