Fix firefox blockchain scroll reset bug

This commit is contained in:
Mononaut 2023-02-12 21:42:33 -06:00
parent cf0897e27c
commit c85d8cd29d
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -298,6 +298,10 @@ export class StartComponent implements OnInit, OnDestroy {
}
ngOnDestroy() {
if (this.blockchainContainer?.nativeElement) {
// clean up scroll position to prevent caching wrong scroll in Firefox
this.blockchainContainer.nativeElement.scrollLeft = 0;
}
this.timeLtrSubscription.unsubscribe();
this.chainTipSubscription.unsubscribe();
this.markBlockSubscription.unsubscribe();