JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.17k stars 1.18k forks source link

App freezes on iOS if using VerticalScrollbar #3807

Closed StefanOltmann closed 1 month ago

StefanOltmann commented 1 year ago

Describe the bug

The application may encounter freezing issues when utilizing the VerticalScrollbar.

I'm in the process of porting my production application, Ashampoo Photos, which is presently accessible on Windows and Android, to iOS. During the testing phase, I have observed instances of freezing while scrolling.

Affected platforms Select one of the platforms below:

Versions

To Reproduce

Check out https://github.com/Ashampoo/scrollfreezereproducer and start the iOS application.

Allow the app to access all photos and restart it.

Engage with the scrollbar by holding the thumb and scrolling. Be aware that occasionally, it may require some time, but the application will ultimately freeze or halt the rendering process. This freezing issue tends to occur more frequently if the thumb is grasped during animated scrolling.

It's worth noting that the original application experiences freezing even more rapidly than the reproducer. Unfortunately, I am unable to disclose the complete code. Nevertheless, identifying the source of the problem will enable me to implement corrective measures.

Expected behavior

No freezes or render loop stopping. VerticalScrollbar has no issues on Desktop.

okushnikov commented 2 months ago

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