Image is partially cropped sometimes when loaded in JetpackCompose LazyColumn item

113 views Asked by At

enter image description hereI am building an image loading library for Jetpack Compose. I know about Coil, and it does not meet my needs.

  • I've build an AsyncMedia composable (Coil's AsyncImage was an inspiration here).
  • When it is used in LazyColumn item and I am scrolling list fast and then stop it, sometimes, regularly, but not frequently, I am getting a cropped image (see screenshot).
  • But file itself is fine, I've checked it.
  • Moreover if I scroll this item out of screen and then back - it is perfectly fine. But this is not happening with Coil. Any ideas?

I've tried to follow Coil implementation as close as possible, including custom painter and so on, but nothing changes.

0

There are 0 answers