mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Only show tooltips when mouse pointer is still (#2263)
* Only show tooltips when mouse pointer is still Revert to the old behavior by setting `style.interaction.show_tooltips_only_when_still = false`. * Area: take `impl Into<Id>` * refactor tooltips * Fix was_tooltip_open_last_frame * Bug fix * Add some spacing between tooltips
This commit is contained in:
@@ -117,7 +117,7 @@ pub(crate) fn submenu_button<R>(
|
||||
/// wrapper for the contents of every menu.
|
||||
pub(crate) fn menu_ui<'c, R>(
|
||||
ctx: &Context,
|
||||
menu_id: impl std::hash::Hash,
|
||||
menu_id: impl Into<Id>,
|
||||
menu_state_arc: &Arc<RwLock<MenuState>>,
|
||||
add_contents: impl FnOnce(&mut Ui) -> R + 'c,
|
||||
) -> InnerResponse<R> {
|
||||
|
||||
Reference in New Issue
Block a user