Removed part that waited for scroll to play, and just call scrollIntoView directly before calculating menuPos