Browse Source

[skia] fixes right aligned textbox selection

pull/2074/head
Stano Turza 8 years ago
parent
commit
12a49d4336
  1. 2
      src/Skia/Avalonia.Skia/FormattedTextImpl.cs

2
src/Skia/Avalonia.Skia/FormattedTextImpl.cs

@ -121,7 +121,7 @@ namespace Avalonia.Skia
int offset = 0;
if (point.X >= (rects[line.Start].X + line.Width) / 2 && line.Length > 0)
if (point.X >= (rects[line.Start].X + line.Width) && line.Length > 0)
{
offset = line.TextLength > line.Length ?
line.Length : (line.Length - 1);

Loading…
Cancel
Save