forked from androidx/androidx
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix long text field overscroll effect not clipped correctly (#859)
## Proposed Changes Make CupertinoOverscrollEffect add `clip` Modifier before `offset` if requested by a using widget. Some widgets (like LazyList) do it internally, so adding it unconditionally will be redundant. ## Testing Test: reported case should clip correctly now. ## Before https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/2158106e-f782-4824-b46c-c576859c6d0e ## After https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/da8ebf8a-4106-4d19-9bac-49963eae3977 <img width="413" alt="Screenshot 2023-10-04 at 11 48 36" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/eb0523b3-c412-4bf7-bbf5-6b5a94cc45ac"> ## API change `CupertinoOverscrollEffect` (uikit source set) now has an additional argument `val applyClip: Boolean` in the constructor. `CupertionOverscrollEffect` is marked as `@ExperimentalFoundationApi` now. --------- Co-authored-by: dima.avdeev <[email protected]>
- Loading branch information
1 parent
7bc20a9
commit 5b48791
Showing
3 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters