Replies: 1 comment 2 replies
-
@BelkinMax I'm not quite sure what you're struggling with but have you seen the examples for Both these examples stop the auto advancing behaviour when clicking on a previous or next button. You can extend the examples and stop the auto advancing behaviour when these buttons receive focus. Best, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
stopOnFocusIn
option triggers stop only when the focus is within the item. Since the navigation is not handled by the library automatically, this behavior looks reasonable, so I am not sure whether this is a bug or a feature.The rootNode option description might be unclear about which elements can be interactive.
In my case, I need to pause the auto-scroll when the focus is on one of the navigation buttons that are placed inside the root node, but outside the container.
The proposal is to add an option that could handle this or similar cases.
eg:
Additional Context
Showcase:
https://github.com/davidjerleke/embla-carousel/assets/64013347/5280253d-8368-4a36-84f8-e52675f22bb7
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions