Add carouselScrolled event to scroll function