Skip to content

Commit

Permalink
Fix tooltip delay, bug introduced in #4784
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 5, 2024
1 parent 2e2366e commit 1059e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1059e0e

Please sign in to comment.