You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Xlvis great process so far. One thing that you're missing in your implementation is keyboard navigation.
I see you're listening for click events on the slider arrows and dots, but users can also navigate through slides using the arrow keys.
Try it our yourself to understand what I mean.
Also, the sliders have an option of auto-play, which continuously switches slides after X milliseconds. This, again, is not triggered with click events.
I am not a fan of relying just on click events, as you can see, you miss many scenarios where those are not even fired. I would suggest you try to keep track of the currently active slide in a different way, perhaps you could try again using a MutationObserver?
Made a video showing weird behaviors when changing slides on reverse and when clicking the slider dots:
https://www.loom.com/share/7877c14425af4506aae02c0cceb452a3
The text was updated successfully, but these errors were encountered: