{
- if (this.menuOpen !== open) {
- this.menuOpen = open;
- this.applyMenuScroll(this.menuOpen);
- }
- });
}
ngAfterViewChecked(): void {
@@ -223,15 +213,6 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
}
}
- applyMenuScroll(opening: boolean): void {
- this.menuSliding = true;
- window.clearTimeout(this.menuTimeout);
- this.menuTimeout = window.setTimeout(() => {
- this.menuSliding = false;
- this.cd.markForCheck();
- }, 300);
- }
-
@HostListener('window:resize', ['$event'])
onResize(): void {
this.chainWidth = window.innerWidth;
@@ -518,6 +499,5 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
this.markBlockSubscription.unsubscribe();
this.blockCounterSubscription.unsubscribe();
this.resetScrollSubscription.unsubscribe();
- this.menuSubscription.unsubscribe();
}
}