aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-03 14:52:00 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-03 14:52:00 +0200
commit86d471834e26e2b12b8cab4d8759f5f7257a71e0 (patch)
treecc00d504b82032b8d6e5cb548cbb61e7a2cf4259 /view/theme
parenta1f7f7a966b9d70b4b80f9fe47e2fb76b2ed5681 (diff)
downloadvolse-hubzilla-86d471834e26e2b12b8cab4d8759f5f7257a71e0.tar.gz
volse-hubzilla-86d471834e26e2b12b8cab4d8759f5f7257a71e0.tar.bz2
volse-hubzilla-86d471834e26e2b12b8cab4d8759f5f7257a71e0.zip
do not call stickyScroll() on small screens - it is not functional
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 0ae81f93e..b867244fb 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -17,8 +17,10 @@ $(document).ready(function() {
}
$('#css3-calc').remove(); // Remove the test element
- stickyScroll('.aside_spacer_left', '.aside_spacer_top_left', '.content', parseFloat(window.getComputedStyle(document.querySelector('#region_1')).getPropertyValue('padding-top')), 0);
- stickyScroll('.aside_spacer_right', '.aside_spacer_top_right', '.content', parseFloat(window.getComputedStyle(document.querySelector('#region_3')).getPropertyValue('padding-top')), 20);
+ if($(window).width() > 992) {
+ stickyScroll('.aside_spacer_left', '.aside_spacer_top_left', '.content', parseFloat(window.getComputedStyle(document.querySelector('#region_1')).getPropertyValue('padding-top')), 0);
+ stickyScroll('.aside_spacer_right', '.aside_spacer_top_right', '.content', parseFloat(window.getComputedStyle(document.querySelector('#region_3')).getPropertyValue('padding-top')), 20);
+ }
$('#expand-aside').on('click', function() {
if($('main').hasClass('region_1-on')){