mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 04:32:26 -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;
|
||||
}
|
||||
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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue