Tweaking scrolling.

This commit is contained in:
Brad Nelson
2022-08-12 09:11:40 -07:00
parent 5a676af894
commit 2f75fd7ae0

View File

@ -258,10 +258,10 @@ if (!globalObj.write) {
context.terminal.replaceChild(ntag, tag);
context.lines[y][0] = ntag;
}
var newline = count > 1 || context.dirty[context.lines.length - 1];
context.dirty = {};
var newline = count > 1;
if (newline) {
window.scrollTo(0, document.body.scrollHeight + 100);
window.scrollTo(0, document.body.scrollHeight);
}
};