From 1059e0e7f1430f2ff8ef552e022ad7478acec0a3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 5 Jul 2024 10:27:11 +0200 Subject: [PATCH] Fix tooltip delay, bug introduced in #4784 --- 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 3532bf342..fa2b744b4 100644 --- a/crates/egui/src/response.rs +++ b/crates/egui/src/response.rs @@ -718,7 +718,7 @@ impl Response { let time_since_last_interaction = self.ctx.input(|i| { i.time_since_last_scroll() - .max(i.pointer.time_since_last_movement()) + .min(i.pointer.time_since_last_movement()) }); let time_til_tooltip = tooltip_delay - time_since_last_interaction;