Only auto-scroll log if at bottom

Only auto-scroll log if it is already scrolled to the bottom. This fixes #1263