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

Patch to make dnd work in firefox. #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LeifAndersen
Copy link

NOTE: This patch is "not" ready to merge, I made this PR as a request for comments/improvements.

It seems like in firefox, svg elements will not have their onDragStart function called. They will, however have their onMouseDown function called. This patch adds a onMouseDown callback, but it also nulls the data stored in the dragging event. Since onMouseDown doesn't seem to let you add information to the drag store, I suspect a shadow store would need to be created in the component's react state.

@jannikbuschke
Copy link
Collaborator

@LeifAndersen I released a new version 2.0.0-beta.2 of this library. Can you check if the issue persists?

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.

2 participants