JetBrains / skiko

Kotlin Multiplatform bindings to Skia
Apache License 2.0
1.82k stars 118 forks source link

Strange repainting problem #855

Closed IKupriyanov-HORIS closed 1 month ago

IKupriyanov-HORIS commented 9 months ago

For some reason Skiko may not repaint content. In my case it happens when I debounce resize events. The most strange thing is that adding an invisible Compose Canvas in a composition fixes this issue.

https://github.com/JetBrains/skiko/assets/14200189/bf2664e5-e4e3-4e93-bb28-8e0a9a4eae50

We faced with this issue in the lets-plot-skia project.

I made a minimal repro and readme with images and video:
https://github.com/IKupriyanov-HORIS/skiko-repaint-issue/

I think this worked with Compose <= 1.4.0 so may be it caused by changes in Compose.

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.