Added window resize handler; set autoscroll distance to 10