We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8362f4 commit 5a70b03Copy full SHA for 5a70b03
src/lib/scroller.js
@@ -42,8 +42,8 @@ Scroller.prototype.setLines = function(newLines, offset) {
42
if(this.sticky){
43
this.endPosition = this.lineCount();
44
this.startPosition = Math.max(this.lineOffset, this.endPosition - this.visibleCount);
45
- if(this.endPosition <= this.visibleCount){
46
- // follow text during initial 50 lines
+ if(this.endPosition <= this.visibleCount * 2){
+ // follow text during initial lines (console can show up to twice the visibleCount when expanding)
47
this.jumpToBottom = true;
48
}
49
}else if(newLines.length === 1 && newLines[0].length === 0){
0 commit comments