Fix rbf autoscroll bug on mobile

This commit is contained in:
Mononaut 2024-04-22 21:52:48 +00:00
parent a66920c51e
commit 31c008afa5
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

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.previousVaue !== changes.txid.currentValue) {
setTimeout(() => { this.scrollToSelected(); });
}
}