From 30dd442d2afa80d1f0300e6be3c7308bbda587dc Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 14 Sep 2024 03:12:21 +0900 Subject: [PATCH] Update response.rs --- crates/egui/src/response.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/egui/src/response.rs b/crates/egui/src/response.rs index b2fdd5e283e..649e563e0ba 100644 --- a/crates/egui/src/response.rs +++ b/crates/egui/src/response.rs @@ -599,6 +599,9 @@ impl Response { if self.ctx.memory(|mem| mem.everything_is_visible()) { return true; } + if !self.hovered() { + return false; + } let any_open_popups = self.ctx.prev_pass_state(|fs| { fs.layers