add a scroll event