autoscroll conditions