From 35314ef1f24b4a99c0e46769bafde8133b034d85 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 1 Jul 2018 23:53:03 +0300 Subject: minor fix to the previous --- js/reader.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'js/reader.js') 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); + } } } }); -- cgit v1.2.3