Skip to content

wrong caret position on moving left with inlined decoration #3772

Answered by alexdima
agusakow asked this question in Q&A
Discussion options

You must be logged in to vote

This is the current behavior of inserted text, it creates two distinct view cursor stops (one before the inserted text and one after the inserted text). You can discover the two distinct view cursor stops by clicking with the mouse. Both view cursor stops map to the same model cursor position, therefore we have decided to skip one when moving left/right. When moving left, we stop at the second one and skip the first one. When moving right, we stop at the first one and skip the second one. IMHO we could add more API such that this can be made configurable by the creator of the inserted text.

cc @hediet

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by hediet
Comment options

You must be logged in to vote
1 reply
@KurtGokhan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature-request Request for new features or functionality
4 participants
Converted from issue

This discussion was converted from issue #2802 on March 09, 2023 15:14.