Skip to content

Fix taps on decoration views for Native Text Input - #3530

Open
Andrei Salavei (ASalavei) wants to merge 6 commits into
jb-mainfrom
andrei.salavei/fix-taps-for-decoration-views
Open

Andrei Salavei (ASalavei) wants to merge 6 commits into
jb-mainfrom
andrei.salavei/fix-taps-for-decoration-views

Conversation

@ASalavei

@ASalavei Andrei Salavei (ASalavei) commented Oct 23, 2026 •

Copy link
Copy Markdown

Disable gestures that are responsible for text selection when the native text input is enabled to provide control to the native selection handles and cursor.
Add Modifier.nativeGesturesGate - it detects if the touch is landed on a text field background instead of decorating box. It's used together with hit test in order to allow or deny corresponding text native selection gestures.

Fixes https://youtrack.jetbrains.com/issue/CMP-10052/NITI-trailingIcon-do-not-handle-click-event
Fixes https://youtrack.jetbrains.com/issue/CMP-10203/iOS-usingNativeTextInputtrue-end-position-caret-incorrectly-flickers-at-start-position
Fixes https://youtrack.jetbrains.com/issue/CMP-9877/ios.-niti.-text-suggestions-always-refreshes-after-scroll

Release Notes

Fixes - iOS

  • Fix taps on decoration views for Native Text Input

# Conflicts:
#	compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/draganddrop/IosDragAndDropManager.ios.kt
#	compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/window/InputViews.ios.kt
#	compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/window/NativeTextInputView.ios.kt
@ASalavei
Andrei Salavei (ASalavei) marked this pull request as ready for review November 12, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant