Stop scrollback at top of timeline
This commit is contained in:
		
							parent
							
								
									f4b368ea3e
								
							
						
					
					
						commit
						5bfe98bdf4
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -396,7 +396,13 @@ class Timeline extends Subscribable {
 | 
				
			||||||
		this.from = root.end
 | 
							this.from = root.end
 | 
				
			||||||
		// console.log(this.updateEvents, root.chunk)
 | 
							// console.log(this.updateEvents, root.chunk)
 | 
				
			||||||
		if (root.state) this.updateStateEvents(root.state)
 | 
							if (root.state) this.updateStateEvents(root.state)
 | 
				
			||||||
		this.updateEvents(root.chunk)
 | 
							if (root.chunk.length) {
 | 
				
			||||||
 | 
								// there are events to display
 | 
				
			||||||
 | 
								this.updateEvents(root.chunk)
 | 
				
			||||||
 | 
							} else {
 | 
				
			||||||
 | 
								// we reached the top of the scrollback
 | 
				
			||||||
 | 
								this.reactiveTimeline.loadMore.remove()
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		this.broadcast("afterScrollbackLoad")
 | 
							this.broadcast("afterScrollbackLoad")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue