diff options
author | Andrew Dolgov <[email protected]> | 2018-07-01 23:53:03 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-07-01 23:53:03 +0300 |
commit | 35314ef1f24b4a99c0e46769bafde8133b034d85 (patch) | |
tree | c11a5b1cdc21cc1c041ad1e1fcf10aef38c27410 /js/reader.js | |
parent | 47e39592c5937b098ac7dc7fc41fb55ae1b1c438 (diff) |
minor fix to the previous
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/js/reader.js b/js/reader.js index c7a2ede..ae96a26 100644 --- a/js/reader.js +++ b/js/reader.js @@ -15,14 +15,6 @@ function enable_swipes() { $(document).ready(function() { console.log('setting taps'); - $(window).on("click tap", function() { - if (parent.$(".header").is(":visible")) { - parent.show_ui(false); - } else { - parent.show_ui(true); - } - }); - $(window).on("mouseup", function(evt) { if (evt.button == 0) { @@ -40,6 +32,12 @@ $(document).ready(function() { } else if (evt.screenX <= margin_side) { console.log("iframe: LEFT SIDE"); parent.prev_page(); + } else { + if (parent.$(".header").is(":visible")) { + parent.show_ui(false); + } else { + parent.show_ui(true); + } } } }); |