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

Stop using Capture phase events #398

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Stop using Capture phase events #398

merged 2 commits into from
Oct 23, 2024

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