add sleeps to fix first jump to end

pull/2/merge
mpl 5 years ago
parent 6a7c935af9
commit 2a9b3a84a5

@ -315,21 +315,37 @@ func main() {
chromedp.Sleep(5000*time.Millisecond),
// TODO(mpl): do it the smart(er) way: nav right in photo view until the URL does not change anymore. Or something.
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.KeyEvent(kb.ArrowRight),
chromedp.Sleep(500*time.Millisecond),
chromedp.ActionFunc(firstNav),
chromedp.ActionFunc(dlAndMoveW()),
chromedp.ActionFunc(navN("left", *nItemsFlag-1)),

Loading…
Cancel
Save