mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Don't hover things under tooltips
This commit is contained in:
@@ -81,5 +81,12 @@ impl super::View for Tooltips {
|
||||
.on_hover_ui(tooltip_ui)
|
||||
.on_disabled_hover_ui(disabled_tooltip_ui);
|
||||
});
|
||||
|
||||
ui.separator(); // ---------------------------------------------------------
|
||||
|
||||
ui.label("This widget has a tooltip that fills the screen")
|
||||
.on_hover_ui(|ui| {
|
||||
ui.allocate_exact_size(ui.ctx().screen_rect().size() * 0.8, egui::Sense::hover());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user