Adjusted triggering of next in selectScroll function