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

Fix visibility of selection handles in iOS when text is LTR + RTL

Open mazunin-v-jb opened this issue 9 months ago • 0 comments

Adjusted check of visibility of selection handles in iOS - they won't be shown when they are visible less than 80% of their size. This change is required for making selection handles visible when a single line textfield contains LTR + RTL text, before this fix selection handles weren't visible. In addition, during scrolling the long textfield, selection handles will be hiding more smoothly than before.

Fixes: https://youtrack.jetbrains.com/issue/COMPOSE-1359/iOS-Selection-Handles-work-weirdly-when-text-is-RTL-LTR

Testing

Open the test app, go Android TextField Samples -> Basic input fields, write some LTR text in any textfield with RTL text, then try to select text. Selection Handles should be visible

Release Notes

Fixes - iOS

  • visibility of selection handles in single-line textfields with LTR + RTL text in iOS

Google CLA

You need to sign the Google Contributor’s License Agreement at https://cla.developers.google.com/. This is needed since we synchronise most of the code with Google’s AOSP repository. Signing this agreement allows us to synchronise code from your Pull Requests as well.

mazunin-v-jb avatar Apr 30 '24 11:04 mazunin-v-jb