The ovserver for scroll event.