Fix SelectableTextBlock Selection (#15536)

Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
This commit is contained in:
xLEGiON 2024-09-13 00:10:52 +01:00 коммит произвёл GitHub
Родитель d72ed1078f
Коммит d5f0188ccf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -347,13 +347,9 @@ namespace Avalonia.Controls
}
else
{
if (_wordSelectionStart == -1 || index < SelectionStart || index > SelectionEnd)
{
SetCurrentValue(SelectionStartProperty, index);
SetCurrentValue(SelectionEndProperty, index);
_wordSelectionStart = -1;
}
SetCurrentValue(SelectionStartProperty, index);
SetCurrentValue(SelectionEndProperty, index);
_wordSelectionStart = -1;
}
break;