From 526c85e2ca5f4ab60b6a922f4829f3d8126a6571 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 14 Sep 2023 10:00:24 +0000 Subject: fix minor regression after recent changes --- view/theme/redbasic/js/redbasic.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 28fb73845..4ad3665fe 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -134,7 +134,7 @@ $(document).ready(function() { //just one finger touched touch_start = e.touches.item(0).clientX; if (touch_start < touch_max) { - $('html, body').css('overflow-y', 'hidden'); + $('body').css('overflow-y', 'hidden'); } } else { @@ -144,7 +144,7 @@ $(document).ready(function() { }); window.addEventListener('touchend', function(e) { - $('html, body').css('overflow-y', ''); + $('body').css('overflow-y', ''); let touch_offset = 30; //at least 30px are a swipe if (touch_start) { @@ -159,7 +159,6 @@ $(document).ready(function() { } if (touch_end < (touch_start - touch_offset)) { //a right -> left swipe - //toggleAside('left'); } } }); -- cgit v1.2.3