You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When hover (tooltip) contains interactive widgets then mouse pointer can interact with the content of the tooltip, tooltip doesn't close when mouse leaves the original item that was hovered.
This causes issue when tooltip is used as only preview and shouldn't be interactable.
To get old behavior back the following workaround can be used:
if response.hovered(){
response.show_tooltip_ui(|ui| {// ....});}
But this doesn't function very well because there is no delay before raising the tooltip. There is no handling of time when the scroll area was last scrolled etc. These features that are missing in workaround makes tooltip not flicker as much.
Describe the solution you'd like
Add a second on_hover_ui method or flag that can be used with tooltip that has interactive content, but shouldn't be interactable (when mouse leaves original item, tooltip closes instead of allowing to interact with the content of the tooltip)
The text was updated successfully, but these errors were encountered:
PPakalns
changed the title
Noninteractive tooltip with interactive content (on_hover_ui)
Noninteractive tooltip with any content (on_hover_ui)
Dec 26, 2024
When hover (tooltip) contains interactive widgets then mouse pointer can interact with the content of the tooltip, tooltip doesn't close when mouse leaves the original item that was hovered.
This causes issue when tooltip is used as only preview and shouldn't be interactable.
To get old behavior back the following workaround can be used:
But this doesn't function very well because there is no delay before raising the tooltip. There is no handling of time when the scroll area was last scrolled etc. These features that are missing in workaround makes tooltip not flicker as much.
Describe the solution you'd like
Add a second on_hover_ui method or flag that can be used with tooltip that has interactive content, but shouldn't be interactable (when mouse leaves original item, tooltip closes instead of allowing to interact with the content of the tooltip)
The text was updated successfully, but these errors were encountered: