bubbletea
bubbletea copied to clipboard
Stopwatch example does not run correctly on Windows
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
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.