Fix rbf autoscroll bug on mobile
This commit is contained in:
		
							parent
							
								
									a66920c51e
								
							
						
					
					
						commit
						31c008afa5
					
				| @ -51,7 +51,7 @@ export class RbfTimelineComponent implements OnInit, OnChanges { | |||||||
| 
 | 
 | ||||||
|   ngOnChanges(changes): void { |   ngOnChanges(changes): void { | ||||||
|     this.rows = this.buildTimelines(this.replacements); |     this.rows = this.buildTimelines(this.replacements); | ||||||
|     if (changes.txid) { |     if (changes.txid &&!changes.txid.firstChange && changes.txid.previousVaue !== changes.txid.currentValue) { | ||||||
|       setTimeout(() => { this.scrollToSelected(); }); |       setTimeout(() => { this.scrollToSelected(); }); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user