1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-26 12:57:40 +00:00

Added swipe support for comic reader and txt reader (#925)

Bugfix for txt file not present on serving file
This commit is contained in:
Ozzie Isaacs
2021-01-24 11:16:57 +01:00
parent 0b32738f4e
commit d2ad78eb40
4 changed files with 28 additions and 12 deletions

View File

@@ -635,6 +635,14 @@ function init(filename) {
// Focus the scrollable area so that keyboard scrolling work as expected
$("#mainContent").focus();
$("#mainContent").swipe( {
swipeRight:function() {
showLeftPage();
},
swipeLeft:function() {
showRightPage();
},
});
$("#mainImage").click(function(evt) {
// Firefox does not support offsetX/Y so we have to manually calculate
// where the user clicked in the image.