Merge pull request #3038 from mempool/mononaut/reset-block-scroll

Fix firefox blockchain scroll reset bug
This commit is contained in:
softsimon authored and GitHub committed 2023-02-13 16:35:09 +07:00
commit 0148a5f489
1 file changed
+4
@@ -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();