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

Dragging a child drags the parent instead #11

Closed
tias79 opened this issue Nov 11, 2018 · 3 comments
Closed

Dragging a child drags the parent instead #11

tias79 opened this issue Nov 11, 2018 · 3 comments

Comments

@tias79
Copy link

tias79 commented Nov 11, 2018

If I have a draggable element with a draggable child element, there seems to be no way of stopping the propagation of the ondragstart event on the child, making the parent element being dragged when I actually intended to drag the child element. The child element is a div inside a parent div.

I'm experiencing this with elm-html5-drag-drop 3.0.0 and Elm 0.19 in Chrome. Is there some mechanism for controlling this that I'm looking past?

@norpan
Copy link
Owner

norpan commented Nov 11, 2018

I'll make a new version in which dragstart propagation is stopped so you can try it out. This is a use case scenario I haven't considered, but I can't see any reasonable scenario where you would actually need propagation from one draggable to another, that's just confusing.

@norpan
Copy link
Owner

norpan commented Nov 11, 2018

Made a new version 3.0.2. f85518c

@tias79
Copy link
Author

tias79 commented Nov 11, 2018

Excellent! Works like a charm!

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

2 participants