Skip to content

Commit

Permalink
Fix SelectableTextBlock Selection
Browse files Browse the repository at this point in the history
  • Loading branch information
xLEGiON committed May 24, 2024
1 parent 0a59a22 commit 57d6fad
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Avalonia.Controls/SelectableTextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,9 @@ protected override void OnPointerPressed(PointerPressedEventArgs e)
}
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;
Expand Down

0 comments on commit 57d6fad

Please sign in to comment.