We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the dragged item has several DIVs, it is dragging the internal DIV, not the external one.
The reason is that dragstart function is not propagating the "el" element passed to it.
The fix is simply:
dragstart = (evt) -> evt.preventDefault() new DragDrop(evt)
should be:
dragstart = (evt, el) -> evt.preventDefault() new DragDrop(evt, el)
The text was updated successfully, but these errors were encountered:
Thanks! Will add and merge.
On Wednesday, 23 October 2013, Joshua-Smith wrote:
When the dragged item has several DIVs, it is dragging the internal DIV, not the external one. The reason is that dragstart function is not propagating the "el" element passed to it. The fix is simply: dragstart = (evt) -> evt.preventDefault() new DragDrop(evt) should be: dragstart = (evt, el) -> evt.preventDefault() new DragDrop(evt, el) — Reply to this email directly or view it on GitHubhttps://github.com//issues/7 .
— Reply to this email directly or view it on GitHubhttps://github.com//issues/7 .
Sorry, something went wrong.
[#7] propagate element correctly - rather than capturing and the drop…
906cc2b
…ping it on the floor :)
Can't believe this one. Code goes to all that trouble to find the draggable parent, then I just drop it on the floor :D
Thanks, fixed.
No branches or pull requests
When the dragged item has several DIVs, it is dragging the internal DIV, not the external one.
The reason is that dragstart function is not propagating the "el" element passed to it.
The fix is simply:
dragstart = (evt) ->
evt.preventDefault()
new DragDrop(evt)
should be:
dragstart = (evt, el) ->
evt.preventDefault()
new DragDrop(evt, el)
The text was updated successfully, but these errors were encountered: