metafizzy / flickity

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

Click events on the prev/next buttons #919

Closed Neve12ende12 closed 5 years ago

Neve12ende12 commented 5 years ago

Click functions attached to the next/previous buttons don't fire when scrolling to the first and last slide.

https://codepen.io/anon/pen/VRyBaj?editors=1111

desandro commented 5 years ago

Thanks for reporting this issue. The click does not fire. because the button is disabled by Flickity. This is by design, for both API & accessibility. If you need a button that dispatches click events, you may be better off building your own custom nav UI.