Skip to content

Conversation

@sezanzeb
Copy link

@sezanzeb sezanzeb commented Jun 24, 2020

I had a bug in which this.context.zoomScale was undefined, causing toPosition.x and toPosition.y to be nan, which prevented dragging links. Maybe I can figure out a minimal example to reproduce the issue during the next few days if you want one.

Furthermore, in order to style links that are being dragged different than those that are placed, className attributes are handy.

I noticed there aren't any className attributes yet in the code, so I went with a BEM naming scheme.

@sezanzeb sezanzeb changed the title link-state and zoom undefined fix link-state classes and zoom undefined fix Jun 24, 2020
@sezanzeb
Copy link
Author

@MrBlenny any opinion on this?

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.

1 participant