This commit is contained in:
natsoni 2026-08-13 11:34:31 +07:00 committed by GitHub
commit 84dc02d9a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);