-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support defaultOverscrollFactory() on iOS #1753
Conversation
...oundation/src/uikitMain/kotlin/androidx/compose/foundation/gestures/UikitScrollable.uikit.kt
Show resolved
Hide resolved
@@ -313,6 +314,8 @@ internal fun BasicTextField( | |||
|
|||
DisposableEffect(textFieldSelectionState) { onDispose { textFieldSelectionState.dispose() } } | |||
|
|||
val overscrollEffect = rememberTextFieldOverscrollEffect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a regression after merging? Why should it be in the same PR? Why isn't it AOSP first edit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a regression after merging?
Yes
Why should it be in the same PR?
It fixes bugs within the overscroll functionality. Basically, keeps the code that was added by us and removed then after AOSP merge. If you feel that it should be in another one, please let me know the reasons.
Why isn't it AOSP first edit?
- The feature has not beed upstreamed yet.
- Too long feedback loop.
@@ -148,8 +151,8 @@ class CupertinoOverscrollEffect( | |||
|
|||
private fun NestedScrollSource.toCupertinoScrollSource(): CupertinoScrollSource? = | |||
when (this) { | |||
NestedScrollSource.Drag -> CupertinoScrollSource.DRAG | |||
NestedScrollSource.Fling -> CupertinoScrollSource.FLING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was it renamed? I might be slightly out of context here, could you please explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, the old values where deprecated and no longer supported.
Add implementation of OverscrollFactory to support new Overscroll API.
Fix overscroll in CoreTextField and BasicTextField.
Upstreaming issue added: https://youtrack.jetbrains.com/issue/CMP-7307/Upstreaming.feature.foundation.text.rememberTextFieldOverscrollEffect
Fixes https://youtrack.jetbrains.com/issue/CMP-7143/Support-OverscrollFactory-and-LocalOverscrollFactory
Release Notes
Fixes - iOS
optOutOfCupertinoOverscroll()
removed.