Add scroll event to resize window