From f76c411e47f07c8f00327996c66e652c664678d2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Jan 2018 18:20:37 +0300 Subject: fix previous --- js/swipes.js | 4 ++++ read.html | 28 ---------------------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/js/swipes.js b/js/swipes.js index 5826648..4c5e369 100644 --- a/js/swipes.js +++ b/js/swipes.js @@ -1,3 +1,7 @@ +$(window).on("click", function() { + parent.toggle_ui(); +}); + $(window).on("swipeleft", function() { parent.next_page(); }); diff --git a/read.html b/read.html index e666925..327a179 100644 --- a/read.html +++ b/read.html @@ -619,34 +619,6 @@ } }; - - $("#reader iframe")[0].contentWindow.ontouchend = function(event) { - toggle_ui(); - }; - - /*$("#reader iframe")[0].contentWindow.onmouseup = function(event) { - - if (!navigator.onLine) return; - - var wnd = this; - var sel = wnd.getSelection().toString().trim(); - - if (sel.match(/^\w+$/)) { - - $.post("backend.php", {op: 'define', word: sel}, function(data) { - if (data) { - - wnd.getSelection().removeAllRanges(); - - $(".dict_result").html(data.result.join("
")); - - $("#dict-modal").modal('show'); - - } - }); - } - };*/ - }); book.on("renderer:keydown", hotkey_handler); -- cgit v1.2.3