materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Waves effect don't working inside owl-carousel plugin

Open genethic opened this issue 11 years ago • 2 comments

I know this is not a real issue but maybe someone had previusly had the same problem and can help me. It will be great if you would help me or give me a hint about and maybe it can also help improving this awesome framework.

I have use the floating button with waves for the Owl carousel jquery plugin navigation buttons, and for some reason the waves effect doesn't work. I supouse that something in the owl carousel css or js is interfering but I can't find it.

This is my code:

("#intro-slider").owlCarousel({
    navigation : true, // Show next and prev buttons
    navigationText: ['<a class="btn-floating btn-black btn-large waves-effect waves-light animated" data-animation="zoomIn"><i class="mdi-hardware-keyboard-arrow-left"></i></a>','<a class="btn-floating btn-black btn-large waves-effect waves-light animated" data-animation="zoomIn"><i class="mdi-hardware-keyboard-arrow-right"></i></a>'],
    slideSpeed : 300,
    paginationSpeed : 400,
    singleItem:true,
    autoPlay : 5000,
});

Thanks in advance!

genethic avatar Mar 04 '15 10:03 genethic

Owl Carousel is probably capturing the click event so it can handle touch/mouse gestures.

Dogfalo avatar Mar 06 '15 14:03 Dogfalo

Solution is

$("#intro-slider").owlCarousel({
    mouseDrag: false,
    touchDrag: false,
});

morshedx avatar Apr 07 '16 07:04 morshedx