Skip to content
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

Fix cursor visual position at BiDi transition #286

Merged
merged 3 commits into from
Sep 1, 2022

Conversation

eymar
Copy link
Collaborator

@eymar eymar commented Aug 31, 2022

Issue description:
When cursor is at BiDi transition position, its visual position doesn't correspond the real (logical) position, leading to a confusion when we try to type more characters (new characters appear at different position than the cursor).

bidi_transition_rtl_primary_bug.mov

With this Fix:
https://user-images.githubusercontent.com/7372778/187870680-fd23ec2a-e60a-4b65-b1d3-5dc31dc0f996.mov

@eymar eymar changed the title Rtl text fix cursor position on line transition Fix cursor visual position at BiDi transition Sep 1, 2022
@eymar eymar merged commit 84a66c1 into jb-main Sep 1, 2022
@eymar eymar deleted the rtl_text_fix_cursor_position_on_line_transition branch September 1, 2022 12:00
eymar pushed a commit that referenced this pull request Oct 26, 2022
* Fix cursor position in RTL text on line transition

* amend

* improved solution (to cover not only new lines)
eymar pushed a commit that referenced this pull request Nov 16, 2022
* Fix cursor position in RTL text on line transition

* amend

* improved solution (to cover not only new lines)
eymar pushed a commit that referenced this pull request Jan 13, 2023
* Fix cursor position in RTL text on line transition

* amend

* improved solution (to cover not only new lines)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants