Recognizes when user is scrolling up or down