I had the same problem and implemented the same solution as you. I just added another function to restart the interval after pressing the right or left arrow (button).
My right arrow has a class .fa-angle-right (fontawsome) and a left .fa-angle-left.
So, the My Carousel Call function looks like this:
$('.carousel').carousel({ full_width:true, time_constant: 100 }); var carouselAutoplay = setInterval(function(){ $('.fa-angle-right').click(); }, 7000); $('.fa-angle-right').click(function(){ $('.carousel').carousel('next'); clearInterval(carouselAutoplay); carouselAutoplay = setInterval(function(){ $('.fa-angle-right').click(); }, 7000); }); $('.fa-angle-left').click(function(){ $('.carousel').carousel('prev'); clearInterval(carouselAutoplay); carouselAutoplay = setInterval(function(){ $('.fa-angle-right').click(); }, 7000); });
source share