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.28k stars 1.18k forks source link

Support configuration of overscroll effects in commonMain #3691

Closed igordmn closed 1 month ago

igordmn commented 1 year ago

Android has LocalOverscrollConfiguration that configures Android-style overscroll, and has the overscrollEffect argument in Modifier.scrollable

Desktop/web don't have overscroll at the moment

iOS has a custom overscroll effect via CupertinoOverscrollEffect, and the current LocalOverscrollConfiguration isn't applicable for it (it doesn't have glowColor or drawPadding). But sometimes it needs to be configured. For example, we need to configure should we always apply overscroll, or configure the spring effect stiffness. Possible solutions:

PMARZV commented 8 months ago

It would be amazing if ComposeMP had a custom overscroll effect (like in IOS but in other platforms too) and let us customize it. Android overscroll effect is very limited and if you have a lower Android version, the "Stretch overscroll" is not there. In my humble opinion, stretch overscroll should be implemented in all android versions! (i dont know if that possible or not)

alaegin commented 6 months ago

Hello!

Is it going to be implemented? It would be nice if we could disable overscroll effect in the Material3 bottom sheets. It's super weird for now.

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.