aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-03 14:36:27 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-03 14:36:27 +0200
commita1f7f7a966b9d70b4b80f9fe47e2fb76b2ed5681 (patch)
treef976c2d6f3548e38e6c6bd30f911fcee2cb377e4 /view/theme
parent081d82218bc2e00169614f268278f7d9dc1e5402 (diff)
downloadvolse-hubzilla-a1f7f7a966b9d70b4b80f9fe47e2fb76b2ed5681.tar.gz
volse-hubzilla-a1f7f7a966b9d70b4b80f9fe47e2fb76b2ed5681.tar.bz2
volse-hubzilla-a1f7f7a966b9d70b4b80f9fe47e2fb76b2ed5681.zip
since position sticky has no effect if overflow is hidden and the workarounds also have issues, we will automatically scroll to top when left aside is brought in
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 1ce1a6d89..0ae81f93e 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -186,6 +186,7 @@ function toggleAside(swipe) {
}
if (!$('main').hasClass('region_1-on') && swipe === 'right') {
$('#expand-aside-icon').removeClass('fa-arrow-circle-right').addClass('fa-arrow-circle-left');
+ $(window).scrollTop(0);
$('html, body').css('overflow-x', 'hidden');
$('main').addClass('region_1-on');
$('<div id="overlay"></div>').appendTo('section');