diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/read.js | 4 | ||||
-rw-r--r-- | js/reader.js | 9 |
2 files changed, 3 insertions, 10 deletions
@@ -1,11 +1,9 @@ 'use strict'; var _store_position = 0; -var _enable_fullscreen = 0; function request_fullscreen() { - if (_enable_fullscreen) - document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); + document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); } function disable_fullscreen() { diff --git a/js/reader.js b/js/reader.js index 89c3de1..edb9434 100644 --- a/js/reader.js +++ b/js/reader.js @@ -4,15 +4,11 @@ function enable_swipes() { $(window).off("swipeleft swiperight"); $(window).on("swipeleft", function() { - parent.show_ui(false); - parent.request_fullscreen(); - parent.book.rendition.next(); + parent.prev_page(); }); $(window).on("swiperight", function() { - parent.show_ui(false); - parent.request_fullscreen(); - parent.book.rendition.prev(); + parent.next_page(); }); } @@ -22,7 +18,6 @@ $(document).ready(function() { $(window).on("click tap", function() { if (parent.$(".header").is(":visible")) { parent.show_ui(false); - parent.request_fullscreen(); } else { parent.show_ui(true); parent.disable_fullscreen(); |