bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

Stopwatch example does not run correctly on Windows

Open geraint23 opened this issue 2 years ago • 1 comments

Stopwatch example does not run as expected on Windows when using

m := model{
    stopwatch: stopwatch.NewWithInterval(time.Millisecond),
}

The count changes within 1000ms for a while, but actually lasts a few seconds When using

m := model{
    stopwatch: stopwatch.NewWithInterval(time.Second),
}

it runs as expected BTW, runs fine on Mac I don't know how to fix it when using time.Millisecond

geraint23 avatar Feb 25 '24 14:02 geraint23

The stopwatch bubble is indeed a bit broken and would require a continuous timer running in the background. I believe there's a ticket in the bubbles repo for it.

muesli avatar Mar 01 '24 17:03 muesli