Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.
Apache License 2.0
592 stars 23 forks source link

Bug: animation triggers every time the loading progress changes #102

Open artsmvch opened 2 months ago

artsmvch commented 2 months ago

Animation triggers every time the loading progress changes. Which leads to situations like in the attached video:

https://github.com/Kamel-Media/Kamel/assets/61359788/4a5373e5-3e08-40aa-bd6d-a8ae247732a8

Instead, the transition animation should only trigger when the resource type changes: from loading to success or from loading to failure.

luca992 commented 1 month ago

Can you provide a basic sample or a code snippet?