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

Drag & Drop Cabling #17

Merged
merged 20 commits into from Sep 18, 2018
Merged

Drag & Drop Cabling #17

merged 20 commits into from Sep 18, 2018

Conversation

timoxley
Copy link
Contributor

@timoxley timoxley commented Sep 17, 2018

  • Adds some module & port state styling.
  • Implements draggable cables.

cable-dragging

Known issues:

  • Flicker of (+) icon when dragging (??)
  • Ports have a white square around them when dragging (Needs a "DragLayer")
  • Currently cabling offset is incorrect when page is scrolled Fixed

…how possible connections when dragging a port.
…erations. Create module/port convenience indexes.
@fonty1
Copy link
Member

fonty1 commented Sep 17, 2018

The green icon seems to be a common issue with dnd library,
react-dnd/react-dnd#414

maybe try

event.dataTransfer.dropEffect = 'none'
event.dataTransfer.effectAllowed = 'none'
This worked for me on chrome. Just put it in the "dragstart" and "dragend" events as those are the only ones that have access to the dataTransfer object.

Copy link
Member

@fonty1 fonty1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start, nothing to complain about : )

@timoxley timoxley merged commit 80bc2c2 into master Sep 18, 2018
@timoxley timoxley deleted the EDITOR-39-drag-drop-cabling branch October 10, 2018 03:21
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.

None yet

2 participants