Browse Source

Fix selection when the mouse is moved underneath the bounding box

pull/7509/head
Benedikt Stebner 4 years ago
parent
commit
3d992ce75b
  1. 2
      src/Avalonia.Visuals/Media/TextFormatting/TextLayout.cs

2
src/Avalonia.Visuals/Media/TextFormatting/TextLayout.cs

@ -406,7 +406,7 @@ namespace Avalonia.Media.TextFormatting
return new TextHitTestResult();
}
characterHit = currentLine.GetNextCaretCharacterHit(new CharacterHit(currentLine.TextRange.End));
characterHit = currentLine.GetCharacterHitFromDistance(point.X);
return GetHitTestResult(currentLine, characterHit, point);
}

Loading…
Cancel
Save