You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
This issue only relates to a single feature. I will open new issues for any other features.
Is your feature request related to a problem?
The fyne.NewAnimation API takes a duration argument and ends the animation after the given duration. I had thought that a duration of 0 might be used to create an infinite animation, but it does not, nor is it documented as such.
Is it possible to construct a solution with the existing API?
No. Closest thing is to use math.MaxInt64 as the duration which is about 290 years (which is good enough for all practical purposes but not clean code).
Describe the solution you'd like to see.
An API fyne.NewIndefiniteAnimation(tick func(f float64)) or a clarification of the existing fyne.NewAnimation that 0 can be used for infinite duration (since an animation of duration 0 is not useful anyway.
The text was updated successfully, but these errors were encountered:
Sounds like a nice feature request - but let's make it explicit as shown in the API you propose.
Something lasting for 0 milliseconds should not run forever,
Checklist
Is your feature request related to a problem?
The
fyne.NewAnimation
API takes a duration argument and ends the animation after the given duration. I had thought that a duration of 0 might be used to create an infinite animation, but it does not, nor is it documented as such.Is it possible to construct a solution with the existing API?
No. Closest thing is to use math.MaxInt64 as the duration which is about 290 years (which is good enough for all practical purposes but not clean code).
Describe the solution you'd like to see.
An API
fyne.NewIndefiniteAnimation(tick func(f float64))
or a clarification of the existingfyne.NewAnimation
that 0 can be used for infinite duration (since an animation of duration 0 is not useful anyway.The text was updated successfully, but these errors were encountered: