[ui] hide the navbar on scroll

This commit is contained in:
nymkappa committed 2023-08-21 22:19:05 +02:00
1 parent 30be7e0f7a
commit bfc3fbe397
1 file changed
+5
@@ -65,4 +65,9 @@ export class MenuComponent implements OnInit {
this.navOpen = false;
}
}
@HostListener('window:scroll', ['$event'])
onScroll(event) {
this.navOpen = false;
}
}