mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Merge 8b056aa5ee into 79e79bcadb
This commit is contained in:
commit
84dc02d9a8
1 changed files with 10 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
private fragmentAnchor: string | null = null;
|
||||
private scrolledFragmentAnchor: string | null = null;
|
||||
private firstFragmentScroll = true;
|
||||
private skipNextAcceleratorScroll = false;
|
||||
|
||||
@ViewChild('txList')
|
||||
set txListSetter(component: TransactionsListComponent | undefined) {
|
||||
|
|
@ -894,6 +895,8 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't scroll to the accelerator widget on desktop
|
||||
this.skipNextAcceleratorScroll = !this.isMobile;
|
||||
this.openAccelerator();
|
||||
return false;
|
||||
}
|
||||
|
|
@ -1221,6 +1224,13 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
this.firstFragmentScroll = false;
|
||||
}
|
||||
}
|
||||
if (this.skipNextAcceleratorScroll) {
|
||||
this.skipNextAcceleratorScroll = false;
|
||||
if (anchor === 'accelerate') {
|
||||
this.firstFragmentScroll = false;
|
||||
this.scrolledFragmentAnchor = anchor;
|
||||
}
|
||||
}
|
||||
if (this.scrolledFragmentAnchor !== this.fragmentAnchor) {
|
||||
if (this.fragmentAnchor) {
|
||||
setTimeout(() => { this.applyFragment(); }, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue