From f711e7eaa8214a6b3c4b63bcd3fa5387cb66ef55 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 28 Feb 2022 16:32:27 +0100 Subject: [PATCH] app: ensure Window.Invalidate redraws after delivering events Events such as system.CommandEvent may result in Invalidate being called. Ensure animation state is properly updated. Signed-off-by: Elias Naur --- app/window.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/window.go b/app/window.go index 1c9da580..b7c29400 100644 --- a/app/window.go +++ b/app/window.go @@ -630,6 +630,7 @@ func (w *Window) waitAck(d driver) { case <-w.immediateRedraws: // Invalidate was called during frame processing. w.setNextFrame(time.Time{}) + w.updateAnimation(d) } } }