Avoid unnecessary frequent rerenders

This commit is contained in:
Simon Gellis 2026-04-12 14:01:34 -04:00
parent 5aeb81e800
commit 9934566414
No known key found for this signature in database
GPG Key ID: DA576912FED9577B
1 changed files with 3 additions and 3 deletions

View File

@ -408,12 +408,12 @@ impl ApplicationHandler<UserEvent> for Application {
WindowEvent::Focused(new_focused) => {
self.focused = new_focused.then_some(viewport_id);
}
WindowEvent::RedrawRequested => {
self.repaint_all(event_loop);
}
_ => {}
}
}
if response.repaint {
self.repaint_all(event_loop);
}
self.check_repaint(event_loop);
}