From c78af7d56c4d2dbc46ffa1ebebc6d0bbf802e35b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 18 Jun 2019 14:19:03 +0300 Subject: switch to jquery mobile events; use doubletap to toggle fullscreen --- js/reader.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/reader.js') diff --git a/js/reader.js b/js/reader.js index 7178aec..bc4db56 100644 --- a/js/reader.js +++ b/js/reader.js @@ -13,6 +13,11 @@ function enable_swipes() { } $(document).ready(function() { + + $(window).on("doubletap", function(evt) { + parent.toggle_fullscreen(); + }); + $(window).on("click tap", function(evt) { if (evt.button == 0) { -- cgit v1.2.3