diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index 20ac47642..2162ef99d 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -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);