mirror of
https://github.com/mempool/mempool.git
synced 2026-08-19 13:18:06 +02:00
Fix firefox blockchain scroll reset bug
This commit is contained in:
parent
cf0897e27c
commit
c85d8cd29d
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue