Merge pull request #5011 from mempool/mononaut/rbf-mobile-autoscroll-bug

Fix rbf autoscroll bug on mobile
This commit is contained in:
softsimon 2024-04-24 10:34:34 +07:00 committed by GitHub
commit d89ba767f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ export class RbfTimelineComponent implements OnInit, OnChanges {
ngOnChanges(changes): void {
this.rows = this.buildTimelines(this.replacements);
if (changes.txid) {
if (changes.txid && !changes.txid.firstChange && changes.txid.previousValue !== changes.txid.currentValue) {
setTimeout(() => { this.scrollToSelected(); });
}
}