From c85d8cd29d6ff2e5b2da4be753eacbb363f40ca9 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sun, 12 Feb 2023 21:42:33 -0600 Subject: [PATCH] Fix firefox blockchain scroll reset bug --- frontend/src/app/components/start/start.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/components/start/start.component.ts b/frontend/src/app/components/start/start.component.ts index d29372d97..ff66e7b97 100644 --- a/frontend/src/app/components/start/start.component.ts +++ b/frontend/src/app/components/start/start.component.ts @@ -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();