From 47accb0eebcc4771c6a289cb650078761bd9cf07 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 3 Jul 2024 13:11:48 +0200 Subject: [PATCH] Tooltip fix: Only treat enabled widgets as interactive --- crates/egui/src/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/response.rs b/crates/egui/src/response.rs index 8cb3eeee226..04b11fde280 100644 --- a/crates/egui/src/response.rs +++ b/crates/egui/src/response.rs @@ -632,7 +632,7 @@ impl Response { vp.prev_frame .widgets .get_layer(layer_id) - .any(|w| w.sense.interactive()) + .any(|w| w.enabled && w.sense.interactive()) }); if tooltip_has_interactive_widget {