It seems to me that slideChange event fires asynchronously and from my debugging experience, when loop mode is activated on slider, activeIndex is sometimes already updated when event is fired and sometimes not. This is confusing and should be explained in documentation.
There is even an issue dating back to 2018 about that: https://stackoverflow.com/questions/50244532/how-can-i-get-the-index-of-the-current-slide-when-the-slide-is-changed
I found that whith transitionEnd event index is consistently updated.
I suggest that events are better explained in documentation, subtle difference between them and in which cases should particular event be used.
It seems to me that slideChange event fires asynchronously and from my debugging experience, when loop mode is activated on slider, activeIndex is sometimes already updated when event is fired and sometimes not. This is confusing and should be explained in documentation.
There is even an issue dating back to 2018 about that: https://stackoverflow.com/questions/50244532/how-can-i-get-the-index-of-the-current-slide-when-the-slide-is-changed
I found that whith transitionEnd event index is consistently updated.
I suggest that events are better explained in documentation, subtle difference between them and in which cases should particular event be used.