-
egui 0.28 introduced: This change allows to hover tool-tip and modify interactive widget inside tool-tip. (tool-tips can be hovered and they do not close if original item is not hovered anymore). I am implementing functionality where hovering a button opens a tool-tip that shows the preview of the window that will be opened. I want to disable the functionality, which keeps tool-tip open when interactive widgets are present inside tool-tip. I can disable widget interactivity by calling ui.disable() inside tool-tip, but it changes the styling of the tool-tip (everything is grayed out) Is there another mechanism to revert to old functionality without UI look (styling) being changed? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No, not right now. The thought was this: if you put an interactive widget in a tooltip, you should allow the user to click it. Putting an interactive widget where the user can't click it sounds like bad UX to me. |
Beta Was this translation helpful? Give feedback.
-
Simple working workaround: Instead of using: response.on_hover_ui(|ui| {
}); You can do: if response.hovered() {
response.show_tooltip_ui(|ui| { ... });
} |
Beta Was this translation helpful? Give feedback.
Simple working workaround:
Instead of using:
You can do: