Add swipe listener after window opens or scrolling doesn't work for long content sometimes