Skip to content

Conversation

Jeremyea3001
Copy link
Contributor

The tooltip component had an invisible box that had pointer events enabled, which can prevent clicks on the graph

@Jeremyea3001 Jeremyea3001 self-assigned this Oct 2, 2025
@Jeremyea3001 Jeremyea3001 requested a review from w8r October 2, 2025 14:08
@w8r w8r requested a review from Copilot October 2, 2025 15:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes tooltip component interference with graph interactions by disabling pointer events on invisible container elements. The change prevents the tooltip's invisible box from blocking user clicks on the underlying graph.

  • Added pointer-events: none CSS property to tooltip container div
  • Updated demo to use nodeHover instead of nodeRightclick for better user experience

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/overlay/tooltip.tsx Added CSS to disable pointer events on tooltip container
demo/src/App.tsx Changed demo tooltip trigger from right-click to hover

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@w8r
Copy link
Contributor

w8r commented Oct 2, 2025

But pointer-events is inheritable? it would propagate to the tooltip body

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