Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: dispatch due stimulus redraws before sleeping

Richie McIlroy0b54ef845e3b
diff --git a/crates/verify/src/bin/stimulus.rs b/crates/verify/src/bin/stimulus.rs
index bef59ab45..45b431bb7 100644
--- a/crates/verify/src/bin/stimulus.rs
+++ b/crates/verify/src/bin/stimulus.rs
@@ -405,6 +405,8 @@ mod app {
&& self.desired(now) != self.shown.unwrap_or(0)
{
window.request_redraw();
+ event_loop.set_control_flow(ControlFlow::Poll);
+ return;
}
match self.next_due(now) {
Some(next) => event_loop.set_control_flow(ControlFlow::WaitUntil(next)),