bratsun
2/25/2015 - 2:43 PM

Add swipe events to Bootstrap carousel on touch devices (requires jQuery Mobile).

Add swipe events to Bootstrap carousel on touch devices (requires jQuery Mobile).

function swipeCarousel() {

	$('.carousel').swiperight(function() {
		$(this).carousel('prev');
	});

	$('.carousel').swipeleft(function() {
		$(this).carousel('next');
	});

}