Repro:
Log a bunch of messages to generate a scrollbar
scroll up
add message (up to load command from history, then enter)
toggle settings gear icon
scroll by dragging bar
Symptom explanation
In this case, we jump close/exactly to the bottom without setting stick to bottom = true. The viewport thinks it’s not at the bottom when it really is.
Root cause
Codemirror uses setText which uses setValue which doesn’t trigger an “input” event so our promptInput doesn’t fire so we don’t immediately go to bottom, we sometimes go to 2 pixels above bottom.
Comment 1 by bugdroid1@chromium.org
, Apr 5 2017