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

Question: afterChange detect the trigger #4319

Open
rpb138 opened this issue Feb 7, 2025 · 0 comments
Open

Question: afterChange detect the trigger #4319

rpb138 opened this issue Feb 7, 2025 · 0 comments

Comments

@rpb138
Copy link

rpb138 commented Feb 7, 2025

I was wondering if there is a way to detect what triggered the slide change, meaning a click, a key press, or auto-play? I'm asking because I need to put focus on the current slide when a key press activated the slide change. I tried just doing a .focus() on afterChange, but because of the auto-play we have on the carousel the focus gets bounced to the carousel if you scroll down the page.

Thanks.

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

No branches or pull requests

1 participant