1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Now the redraw hack introduced in "Some hacky fixes" is no more needed!

This fixes other problems that was caused by that hack!
This commit is contained in:
Konkitoman
2023-07-30 22:11:49 +03:00
parent 63f4b486e3
commit e6e1463062

View File

@@ -141,14 +141,8 @@ impl Repaint {
.unwrap_or(0)
> 0
{
// This is a hack, i think
// is some thing strange with the input! We need to store a state per viewport and not per context
if let Some(requests) = self.repaint_requests.get_mut(&viewport_id) {
if *requests >= 2 {
*requests -= 2;
} else {
*requests -= 1;
}
*requests -= 1;
}
std::time::Duration::ZERO