Skip to content

Conversation

@coofercat
Copy link
Contributor

@coofercat coofercat commented Oct 7, 2024

This fixes #390 - elements further "down" DOM can't stop events reaching the Carousel because the Carousel uses Capture events, which start in the root of the DOM and work their way down to child elements. As such, they happen before anything inside the Carousel has a chance to handle them. This means it's impossible to prevent the Carousel from sliding from a child element (for example, an interactive component in a Slide).

Probably my lack of relevant skills, but I couldn't get the dependencies of this project to resolve in a clean VM, and after some hackery to get around that I got some Vue render-time errors related to refs which I didn't understand. As such, I haven't been able to properly test this change.

@coofercat coofercat changed the title #390: Stop using Capture phase events Stop using Capture phase events Oct 7, 2024
@Tofandel
Copy link
Contributor

Tofandel commented Oct 7, 2024

They are also on line 240-242

@coofercat
Copy link
Contributor Author

...so they are (now removed) #untested ;-)

@ismail9k ismail9k merged commit cf4ebdc into ismail9k:master Oct 23, 2024
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

Successfully merging this pull request may close these issues.

Disable Sliding Once Touch/Click Has Started

3 participants