diff --git a/static/css/theme.css b/static/css/theme.css index d7e334955e..23d9c6eb7e 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -56,7 +56,7 @@ body { height: 100%; justify-content: flex-end; line-height: 1.574; - overflow: hidden; /* to avoid browser scrollbar to flicker before we create our own */ + /* overflow: hidden; PSC removed for #242 #243 #244; to avoid browser scrollbar to flicker before we create our own */ width: 100%; } diff --git a/static/js/theme.js b/static/js/theme.js index ce9d9c1608..442d229876 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -323,24 +323,25 @@ function initMenuScrollbar(){ // to scroll the body var n = document.querySelector('body').matches('.sidebar-flyout'); if( n ){ - psm.scrollbarY.focus(); + psm && psm.scrollbarY.focus(); } else{ - psc.scrollbarY.focus(); + psc && psc.scrollbarY.focus(); } } }); // scrollbars will install their own keyboard handlers // that need to be executed inbetween our own handlers var psm = new PerfectScrollbar('#content-wrapper'); - var psc = new PerfectScrollbar(content); + // PSC removed for #242 #243 #244 + // var psc = new PerfectScrollbar(content); document.addEventListener('keydown', function(){ // if we facked initial scrolling, we want to // remove the focus to not leave visual markers on // the scrollbar if( autofocus ){ - psc.scrollbarY.blur(); - psm.scrollbarY.blur(); + psc && psc.scrollbarY.blur(); + psm && psm.scrollbarY.blur(); autofocus = false; } });