metafizzy / flickity

:leaves: Touch, responsive, flickable carousels
https://flickity.metafizzy.co
7.5k stars 604 forks source link

Does not trigger flickity carousel "settle" event #1287

Open jbaillette opened 9 months ago

jbaillette commented 9 months ago

Hello,

I use Flickity v2.3.0 on my shopify theme. I want to trigger some custom actions when detecting the settle event of flickity carousel. However, I added the following code at the end of my flickity.js but there is no settle event when i change from slide to slide. You can have a look at the following webpage and observe the settle event is not logged: https://ezokofishing.com/products/chaos-tackle-medussa-micro

CODE ADDED var $carousel = $('.carousel').flickity();

$carousel.on( 'settle.flickity', function( event, index ) { console.log( 'Flickity settled at ' + index ); });