[ui] hide the navbar on scroll

This commit is contained in:
nymkappa 2023-08-21 22:19:05 +02:00
parent 30be7e0f7a
commit bfc3fbe397
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -65,4 +65,9 @@ export class MenuComponent implements OnInit {
this.navOpen = false;
}
}
@HostListener('window:scroll', ['$event'])
onScroll(event) {
this.navOpen = false;
}
}