diff options
-rw-r--r-- | js/reader.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/reader.js b/js/reader.js index bc4db56..cfb16a8 100644 --- a/js/reader.js +++ b/js/reader.js @@ -14,8 +14,13 @@ function enable_swipes() { $(document).ready(function() { - $(window).on("doubletap", function(evt) { - parent.toggle_fullscreen(); + $(window).on("doubletap", function(/* evt */) { + + const sel = getSelection().toString().trim(); + + if (!sel.match(/^\w+$/)) { + parent.toggle_fullscreen(); + } }); $(window).on("click tap", function(evt) { |