use scroll event to start loop