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

linkCurvature onLinkHover causes a hit box glitch. #15

Closed
GeoffGodwin opened this issue Jun 21, 2018 · 2 comments
Closed

linkCurvature onLinkHover causes a hit box glitch. #15

GeoffGodwin opened this issue Jun 21, 2018 · 2 comments
Assignees

Comments

@GeoffGodwin
Copy link

GeoffGodwin commented Jun 21, 2018

Love this library, saved me some serious start up time on my current project!

While attempting to use the linkCurvature property in conjunction with the onLinkHover property I noticed that the curvature does not apply to the hit box of the hover. So although the line visually curves properly, hovering over the curved line will not trigger the onHover. However, hovering over the space where a straight link would be will fire the event as though the link is still straight.

Easy to reproduce using a curvature of .5 with onLinkHover.

@vasturiano vasturiano self-assigned this Jun 21, 2018
@vasturiano
Copy link
Owner

Thanks the report @GeoffGodwin! There was a bug in the lib that wasn't respecting the link curvature on hover. Now fixed in the latest version (1.5.1).

@GeoffGodwin
Copy link
Author

Awesome, works like a charm now, thank you again!

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

2 participants