From dd18765a80d05789813bbe46267b43befcfb6d2a Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 6 Sep 2019 16:55:14 -0400 Subject: [PATCH] Fine grained animation delays. --- cmd/passgo-gui/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/passgo-gui/main.go b/cmd/passgo-gui/main.go index 346d5fd..e89b739 100644 --- a/cmd/passgo-gui/main.go +++ b/cmd/passgo-gui/main.go @@ -296,11 +296,11 @@ func eventLoop() { overlay.Background = darkgray w.Invalidate() go func() { - time.Sleep(time.Second * time.Duration(fade1a)) + time.Sleep(time.Millisecond * time.Duration(fade1a*1000)) animOn() }() go func() { - time.Sleep(time.Second * time.Duration(Config.ClearDelay)) + time.Sleep(time.Millisecond * time.Duration(Config.ClearDelay*1000)) log(Info, "clearing clipboard") passgo.Clip("") }()