always hide header bar on scroll down

This commit is contained in:
Til Schmitter 2026-04-25 13:01:47 +02:00
parent 40eb6271d5
commit 1e42a8401e

View file

@ -7420,6 +7420,7 @@ function onwrapscroll () {
lastY = newY;
}
window.addEventListener('scroll', onwrapscroll);
function onwidgetresize(){
var widget = ebi('widget');
@ -7432,15 +7433,6 @@ function onwidgetresize(){
clmod(ebi('pathBar'), 'thin', thin);
clmod(ebi('wrap'), 'thin', thin);
if(thin && !ows_active){
window.addEventListener('scroll', onwrapscroll);
ows_active = true;
}
else if (!thin && ows_active){
window.removeEventListener('scroll', onwrapscroll);
ows_active = false;
}
thin = thin || IE;
var gtc = 'max-content max-content max-content ' + (thin ? '' : '20%') + ' auto max-content max-content max-content';