Fix tooltip delay, bug introduced in #4784
This commit is contained in:
parent
2e2366e88d
commit
1059e0e7f1
|
|
@ -718,7 +718,7 @@ impl Response {
|
||||||
|
|
||||||
let time_since_last_interaction = self.ctx.input(|i| {
|
let time_since_last_interaction = self.ctx.input(|i| {
|
||||||
i.time_since_last_scroll()
|
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;
|
let time_til_tooltip = tooltip_delay - time_since_last_interaction;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue