Skip to content

Question: afterChange detect the trigger #4319

@rpb138

Description

@rpb138

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions