I'm currently using Owl Carousel 2.0.0-beta.2.4 in development to keep the carousel centered and loop the items which works nicely.
For some reason the cloned items that Owl generates when setting loop: true doesn't seem to fire on click. You will see in the example I've put together below that every other item alerts the click when fired but if the item has been cloned it doesn't seem to register the click event.
Hi, @ui-matt
$('#multiple-carousel').on('click', '.item', function () {
alert("click");
});
Ah nice!
Seems to work a treat, thanks for that @dashukin
Is there way to get item index for the clicked item? I woud like to know which item is clicked.
@negativefix Did you ever find how to properly get the index?
Using n = $(this).index(); the index is all over the place, I guess because of the cloned items.
Most helpful comment
Hi, @ui-matt