diff --git a/main.go b/main.go index 5b457b2..94b1c27 100644 --- a/main.go +++ b/main.go @@ -359,7 +359,7 @@ func navToEnd(ctx context.Context) error { break } previousScr = scr - time.Sleep(tick) + time.Sleep(10*tick) } if *verboseFlag { @@ -417,6 +417,9 @@ func doRun(filePath string) error { // navLeft navigates to the next item to the left func navLeft(ctx context.Context) error { + var res []string + chromedp.EvaluateAsDevTools(`window.resize();`, &res) + time.Sleep(tick) muNavWaiting.Lock() listenEvents = true muNavWaiting.Unlock()