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

Component | Graph: Fixing pointer-events issues; Configurable link highlight on hover #492

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

rokotyan
Copy link
Contributor

Previously, the Graph component had frequent pointer-events related issues when hovering over nodes or clicking on them. This PR should fix this problem.

Also, adding a config option linkHighlightOnHover allowing to disable link highlighting on hover (defaults to true to avoid breaking changes)

388450083-20d4ca2d-92ba-4a74-b962-fe48e9aeeb80.mp4

…lector

This commits aims to solve frequent problems with node mouseover / click events not being triggered (link events were triggered instead).

- Adds a new `linkLabel` selector to the Graph component to target the link label group
- Removes the `pointer-events: all` style from the `linkLabelGroup` to prevent link hover highlight from interfering with link label interactions
- Adds a new `linkHighlightOnHover` config option to the Graph component to enable/disable link hover highlight
- Updates the `_onLinkMouseOver` method to only set the `hovered` state if `linkHighlightOnHover` is true
@reb-dev reb-dev self-requested a review January 17, 2025 19:39
@lee00678 lee00678 merged commit 0844bf0 into f5:main Jan 29, 2025
4 checks passed
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