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

Support on hover tooltip that is noninteractable even with interactable content #5543

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PPakalns
Copy link
Contributor

@PPakalns
Copy link
Contributor Author

Tested in real use case. Greatly reduces flickering for "preview" tooltips that may contain interactable widgets.

Use case: "Preview" of the page/window that will be opened if the button is pressed.

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5543-noninteractivetooltip
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@grtlr
Copy link
Collaborator

grtlr commented Jan 3, 2025

@emilk I ran into a related problem: rerun-io/rerun#8568

It seems like the current logic in should_show_hover_ui does not take into account that the tooltip is drawn in relation to the pointer position. Because of this, the tooltip always remains open since it's shifted at every frame.

In the case of the Rerun graph view, we can simply call on_hover_ui instead of on_hover_ui_at_pointer: rerun-io/rerun#8573

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.

Noninteractive tooltip with any content (on_hover_ui)
2 participants