Browse Source

Fix SelectableTextBlock Selection (#15536)

Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
pull/17021/head
xLEGiON 1 year ago
committed by GitHub
parent
commit
d5f0188ccf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      src/Avalonia.Controls/SelectableTextBlock.cs

10
src/Avalonia.Controls/SelectableTextBlock.cs

@ -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;

Loading…
Cancel
Save