From 8b056aa5ee34a54421e9920f0b357b8d6fa5609a Mon Sep 17 00:00:00 2001 From: natsoni Date: Sun, 19 Jul 2026 11:07:55 +0200 Subject: [PATCH] Prevent scrolling to accelerator widget on desktop --- .../components/transaction/transaction.component.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index 8c7892c37..d2a6b852b 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -179,6 +179,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) { @@ -897,6 +898,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; } @@ -1224,6 +1227,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);