Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopwatch example does not run correctly on Windows #932

Open
geraint23 opened this issue Feb 25, 2024 · 1 comment
Open

Stopwatch example does not run correctly on Windows #932

geraint23 opened this issue Feb 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@geraint23
Copy link

geraint23 commented Feb 25, 2024

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

@muesli muesli added the bug Something isn't working label Mar 1, 2024
@muesli
Copy link
Member

muesli commented Mar 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants