Adding condition to scrolling event.