mirror of
https://github.com/9001/copyparty.git
synced 2026-06-22 05:53:29 -06:00
always hide header bar on scroll down
This commit is contained in:
parent
40eb6271d5
commit
1e42a8401e
|
|
@ -7420,6 +7420,7 @@ function onwrapscroll () {
|
||||||
|
|
||||||
lastY = newY;
|
lastY = newY;
|
||||||
}
|
}
|
||||||
|
window.addEventListener('scroll', onwrapscroll);
|
||||||
|
|
||||||
function onwidgetresize(){
|
function onwidgetresize(){
|
||||||
var widget = ebi('widget');
|
var widget = ebi('widget');
|
||||||
|
|
@ -7432,15 +7433,6 @@ function onwidgetresize(){
|
||||||
clmod(ebi('pathBar'), 'thin', thin);
|
clmod(ebi('pathBar'), 'thin', thin);
|
||||||
clmod(ebi('wrap'), '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;
|
thin = thin || IE;
|
||||||
|
|
||||||
var gtc = 'max-content max-content max-content ' + (thin ? '' : '20%') + ' auto max-content max-content max-content';
|
var gtc = 'max-content max-content max-content ' + (thin ? '' : '20%') + ' auto max-content max-content max-content';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue