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

Infinite progress bar snapping and doesn't loop nicely #5433

Open
2 tasks done
halsten-dev opened this issue Jan 19, 2025 · 5 comments
Open
2 tasks done

Infinite progress bar snapping and doesn't loop nicely #5433

halsten-dev opened this issue Jan 19, 2025 · 5 comments
Labels
unverified A bug that has been reported but not verified

Comments

@halsten-dev
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

The infinite progressbar is not looping nicely. The bar return at the start before finishing it's animation.

How to reproduce

  1. Display an InfiniteProgressBar Widget

Screenshots

Screencast.From.2025-01-19.11-07-10.webm

Example code

ProgBar := widget.NewInfiniteProgressBar()

Fyne version

2.5.3

Go compiler version

go version go1.23.4 linux/amd64

Operating system and version

Manjaro (Linux 6.11.11-1-MANJARO)

Additional Information

No response

@halsten-dev halsten-dev added the unverified A bug that has been reported but not verified label Jan 19, 2025
@halsten-dev
Copy link
Author

It can be seen in the demo app too.

@andydotxyz
Copy link
Member

It starts part way into the bar and ends before it has left the bar.
The reason behind this was so you never see an empty bar which could look like a 0% progress.
Were we wrong?

@halsten-dev
Copy link
Author

I can understand what you say. But in the case of the infinite progressbar is more about the animation than the progress.

You really like Apple as I understood, their infinite bars are nicely animated. Fyne's linear animation works well for sure but at least, in my opinion, it should loop smoothly. You can avoid an empty bar by doing a ping pong animation that goes back and forth in the bar.

@andydotxyz
Copy link
Member

Yes I think that a back and forth could work, it feels slightly better than leaving it empty. With the animation API it should now be as simple as turning on the reversing setting for the animation.

You really like Apple as I understood

Not so much, but they put a lot of effort into UI design and UX ;).

@halsten-dev
Copy link
Author

halsten-dev commented Jan 20, 2025

Happy to read that you like the idea.

Not so much, but they put a lot of effort into UI design and UX ;).

Indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants