diff options
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/reader.js b/js/reader.js index d7eddbe..d3614aa 100644 --- a/js/reader.js +++ b/js/reader.js @@ -13,7 +13,7 @@ function enable_swipes() { } $(document).ready(function() { - $(window).on("mouseup", function(evt) { + $(window).on("click tap", function(evt) { if (evt.button == 0) { if ($(".modal").is(":visible")) @@ -35,6 +35,14 @@ $(document).ready(function() { $(window).off("swipeleft swiperight"); }); + $(window).on("wheel", function(evt) { + if (evt.originalEvent.deltaY > 0) { + parent.next_page(); + } else if (evt.originalEvent.deltaY < 0) { + parent.prev_page(); + } + }); + enable_swipes(); }); |