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

[metal-drag-drop] Draggable elements are not clickable #111

Closed
p2kmgcl opened this issue Dec 11, 2018 · 3 comments
Closed

[metal-drag-drop] Draggable elements are not clickable #111

p2kmgcl opened this issue Dec 11, 2018 · 3 comments

Comments

@p2kmgcl
Copy link
Contributor

p2kmgcl commented Dec 11, 2018

Once you set a draggable element with metal-drag-drop, there is no way to make it clickable without using a handler.

@diegonvs
Copy link
Collaborator

diegonvs commented Jan 15, 2019

Could you give me more details @p2kmgcl? Are you needing a new emmiter like Drag.Events.INTERACT, that will be emitted when have any interactions in sources elements before a START for example?

@p2kmgcl
Copy link
Contributor Author

p2kmgcl commented Jan 15, 2019

When an item is added as metal-drag-drop source, metal captures mousedown event, and for that reason links and buttons stop working.

In this case:

screenshot_2019-01-15_16-29-27

We needed to add a drag handler, because otherwise the item is not clickable anymore.

@diegonvs
Copy link
Collaborator

This behaviour occurs when useShim option isn't not setted to false. When you don’t pass false for this option, a DragShim is enabled for your Drag instance. basically this shim is used to attach events of Drag move and end like mousemove and mouseup to a shim element that can be placed above the document do hear these events. This functionality is important for dragging nodes over iframes. If false, these events of Drag move and end will be attached in the document 🙂

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