disable interval when not scrolling