Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not trigger flickity carousel "settle" event #1287

Open
jbaillette opened this issue Oct 31, 2023 · 0 comments
Open

Does not trigger flickity carousel "settle" event #1287

jbaillette opened this issue Oct 31, 2023 · 0 comments

Comments

@jbaillette
Copy link

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 );
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant