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

link-state classes and zoom undefined fix #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant