mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
Merge pull request #3038 from mempool/mononaut/reset-block-scroll
Fix firefox blockchain scroll reset bug
This commit is contained in:
commit
0148a5f489
1 changed files with 4 additions and 0 deletions
|
@ -298,6 +298,10 @@ export class StartComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
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.timeLtrSubscription.unsubscribe();
|
||||||
this.chainTipSubscription.unsubscribe();
|
this.chainTipSubscription.unsubscribe();
|
||||||
this.markBlockSubscription.unsubscribe();
|
this.markBlockSubscription.unsubscribe();
|
||||||
|
|
Loading…
Add table
Reference in a new issue