Skip to content

Make tooltip static when selected #30

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

Merged

Conversation

joshjms
Copy link
Contributor

@joshjms joshjms commented May 13, 2025

image

The image isn't very clear to show but my cursor is not hovering at the time of that screenshot 😂

Please take a look 😄
/cc @anishathalye

Reference: #29

Copy link

@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

This PR aims to keep the tooltip in a fixed position when an element is selected.
Key changes include:

  • Adding an early return in the mouse move handler to skip repositioning when an element is selected.
  • Updating the display and positioning of the tooltip upon selection.
  • Adjusting the tooltip and reset logic on mouse out and background click.
Comments suppressed due to low confidence (1)

visualization/index.js:784

  • The 'event' variable is used here without being passed to the function; consider ensuring that the event is either passed as a parameter or otherwise defined in this context.
tooltip.style.left = event.pageX + 20 + 'px'

@serathius
Copy link
Contributor

serathius commented May 14, 2025

Great work @joshjms! but I don't know anything about JS so I cannot review :P

@joshjms
Copy link
Contributor Author

joshjms commented May 14, 2025

It's ok, I'm also not good with JS, I hope @anishathalye can help review 😂

@joshjms
Copy link
Contributor Author

joshjms commented May 21, 2025

Hi @anishathalye , really sorry to ping you if you're busy. If I may know, is there anything else I can do to improve this? Thanks!

@anishathalye anishathalye merged commit 0a940d7 into anishathalye:master May 22, 2025
@anishathalye
Copy link
Owner

Thank you! Fixed a small bug in 9c675ba. Released as v1.0.3.

@joshjms
Copy link
Contributor Author

joshjms commented May 22, 2025

Ooh thanks a lott!!

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.

3 participants