Fix scrolling issue and reduce the number of scrolling events on startup

Don't trigger scrolling on each line when batch loading lines