Fix text box shift not working when selection start is at the text length.

This commit is contained in:
Chandler Cox
2025-04-03 13:58:16 -05:00
parent 368ef9185b
commit cb6a4cc325

View File

@@ -742,7 +742,7 @@ namespace FlaxEngine.GUI
{
SetSelection(SelectionRight);
}
else if (SelectionRight < TextLength)
else if (SelectionRight < TextLength || (_selectionEnd < _selectionStart && _selectionStart == TextLength))
{
int position;
if (ctrl)