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

Support drag and drop between windows #3407

Open
FezVrasta opened this issue Mar 15, 2022 · 6 comments
Open

Support drag and drop between windows #3407

FezVrasta opened this issue Mar 15, 2022 · 6 comments

Comments

@FezVrasta
Copy link

Is your feature request related to a problem? Please describe.

HTML5 drag-and-drop supports interactions between windows. This issue is to ask to support it on the react-dnd HTML5 backend too.

Same as #1533

Describe the solution you'd like

Drag and drop should work across windows.

Describe alternatives you've considered

I looked for other libraries that support this but I couldn't find any.

Additional context

@Heilemann
Copy link

Second this, since it's one of the things that makes HTML5 drag and drop special. I would add that a very nice to have would be cross origin support (possibly through postMessages?) for e.g. embedded iFrames.

@odusseys
Copy link

odusseys commented Apr 2, 2022

I'm not a maintainer but given the architecture of the lib (redux) I have a hard time seeing how this could be achieved. Perhaps using redux-persist on the state managed by the library and persisting on localStorage, but there is no way to achieve updates synchronously.

@FezVrasta
Copy link
Author

I'm not a maintainer but given the architecture of the lib (redux)

What do you mean? Is this library built using Redux?

@CristhianMotoche
Copy link

Hello! Have you find a solution or workaround for this?

@FezVrasta
Copy link
Author

FezVrasta commented Jul 9, 2022

No, I implemented my own solution/hook at the end

@TheUnlocked
Copy link

TheUnlocked commented Oct 8, 2022

I created use-dnd to allow this if anyone is interested in a pre-built solution. Unfortunately it's HTML5 DND-only (so no touch support) but if that's all you need then it hopefully shouldn't be too hard to migrate (or maybe combine both libraries together to get the best of both worlds, though I haven't tried doing that myself). Warning that it's mostly untested except for the specific scenarios I needed, so I can't promise as much reliability as react-dnd can. 😅

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

5 participants