compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Support configuration of overscroll effects in commonMain

Open igordmn opened this issue 2 years ago • 2 comments

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:

  • make LocalOverscrollConfiguration expect/actual
  • deprecate LocalOverscrollConfiguration and provide LocalOverscrollEffect instead
  • deprecate LocalOverscrollConfiguration and provide LocalScrollableConfiguration instead
  • deprecate LocalOverscrollConfiguration, allow configuration only per-widget basis (LazyList, scrollable)

igordmn avatar Sep 15 '23 12:09 igordmn

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)

PMARZV avatar Mar 20 '24 13:03 PMARZV

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.

alaegin avatar May 20 '24 21:05 alaegin

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

okushnikov avatar Aug 23 '24 13:08 okushnikov