mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -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:
@@ -141,14 +141,8 @@ impl Repaint {
|
|||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
> 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 let Some(requests) = self.repaint_requests.get_mut(&viewport_id) {
|
||||||
if *requests >= 2 {
|
*requests -= 1;
|
||||||
*requests -= 2;
|
|
||||||
} else {
|
|
||||||
*requests -= 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::time::Duration::ZERO
|
std::time::Duration::ZERO
|
||||||
|
|||||||
Reference in New Issue
Block a user