summaryrefslogtreecommitdiff
path: root/js/reader.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-06-18 14:19:03 +0300
committerAndrew Dolgov <[email protected]>2019-06-18 14:19:03 +0300
commitc78af7d56c4d2dbc46ffa1ebebc6d0bbf802e35b (patch)
tree2a05a6248b0af7f93a3bacaf18cca071e5e945be /js/reader.js
parent506a5a877ead4e4e756b645d3e0a303509ea10ec (diff)
switch to jquery mobile events; use doubletap to toggle fullscreen
Diffstat (limited to 'js/reader.js')
-rw-r--r--js/reader.js5
1 files changed, 5 insertions, 0 deletions
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) {