Skip to content

Commit 5a70b03

Browse files
committed
Tweak initial jump-to-bottom values
1 parent a8362f4 commit 5a70b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/scroller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Scroller.prototype.setLines = function(newLines, offset) {
4242
if(this.sticky){
4343
this.endPosition = this.lineCount();
4444
this.startPosition = Math.max(this.lineOffset, this.endPosition - this.visibleCount);
45-
if(this.endPosition <= this.visibleCount){
46-
// follow text during initial 50 lines
45+
if(this.endPosition <= this.visibleCount * 2){
46+
// follow text during initial lines (console can show up to twice the visibleCount when expanding)
4747
this.jumpToBottom = true;
4848
}
4949
}else if(newLines.length === 1 && newLines[0].length === 0){

0 commit comments

Comments
 (0)