finish mobile menu and scroll event

This commit is contained in:
2026-06-19 13:34:37 +02:00
parent 8786d24b37
commit 7ed63e6705
3 changed files with 26 additions and 29 deletions
+4
View File
@@ -20,6 +20,10 @@ export class Header {
this.isMenuOpen = false;
}
scrollTo(id: string): void {
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });
}
@HostListener('document:click', ['$event'])
onDocumentClick(event: MouseEvent): void {
if (!this.isMenuOpen) {