You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My hardware is compatible and my graphics drivers are up-to-date.
What happened?
Sometimes, the cursor position inside of a TextInput is offset from the "real" cursor such that characters are inserted at the wrong place. When clicking on the empty space after the TextInput's value, the cursor appears one character away from the end instead of being at the very end.
Selecting all the text inside of the input and typing some new text removes the issue.
2024-01-11.01-02-51.mp4
It seems to be a visual bug, because typed characters are inserted correctly. However, the cursor is not displayed at the right position.
This issue happened to me several times when using the master branch of Iced in my projects. The crates.io version doesn't have that bug.
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Sometimes, the cursor position inside of a TextInput is offset from the "real" cursor such that characters are inserted at the wrong place. When clicking on the empty space after the TextInput's value, the cursor appears one character away from the end instead of being at the very end.
Selecting all the text inside of the input and typing some new text removes the issue.
2024-01-11.01-02-51.mp4
It seems to be a visual bug, because typed characters are inserted correctly. However, the cursor is not displayed at the right position.
This issue happened to me several times when using the master branch of Iced in my projects. The crates.io version doesn't have that bug.
To pinpoint exactly what's causing the issue, I tried making an SSCCE:
master...DaraJKong:iced:fix/wrong_text_input_cursor_position
However, it turned out so short that it's almost an Hello World for the TextInput widget.
What is the expected behavior?
Characters should be inserted at the cursor, not offset from it.
Version
master
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: