зеркало из https://github.com/AvaloniaUI/Avalonia.git
Fix SelectableTextBlock Selection (#15536)
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
This commit is contained in:
Родитель
d72ed1078f
Коммит
d5f0188ccf
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче