Lottie.Forms.AnimationView.OnFinishedAnimation does not fire all the time.
pmahend1 opened this issue ยท 0 comments
pmahend1 commented
๐ Bug Report
Lottie.Forms.AnimationView.OnFinishedAnimation
doesn't fire all the time.
I have noticed this in the cases where web-view is part of the Page where animation view is present
Also noticed it in the cases where ImageView is part of the pge where the animation view is present.
So irrespective of what we have the event doesn't get fired sometimes.
As a work-around we are setting explcit Task.Delay
but that should not be the ideal way of handling these.
Expected behavior
Should trigger OnFinishedAnimation
every time
Reproduction steps
- Create a Xamarin forms project and Lottie Xamarin forms NuGet
- Add a
ContentPage
with aLottie.Forms.AnimationView
andWebview
- Add
OnFinishedAnimation
event handler - Subscribe for WebView.Navigated event : Once web page loaded run the animation with
AnimationView.PlayAnimation
- Notice that
OnFinishedAnimaton
does not fire all the time.
Configuration
Version: Com.Airbng.Xamarin.Forms.Lottie 4.0.10
Platform:
- ๐ฑ iOS
- ๐ค Android
- ๐ WPF
- ๐ UWP
- ๐ MacOS
- ๐บ tvOS
- ๐ Xamarin.Forms