Browse Source

Merge pull request #11009 from Gillibald/fixes/glyphRunHitTest

Fixes GlyphRunNode hit testing
gh-readonly-queue/master/pr-11014-920ad77f1627cbc7d59a97f157e24358e1e344f5
Max Katz 3 years ago
committed by GitHub
parent
commit
f0f5e7b8b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs

5
src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs

@ -53,7 +53,10 @@ namespace Avalonia.Rendering.SceneGraph
}
/// <inheritdoc/>
public override bool HitTestTransformed(Point p) => Bounds.ContainsExclusive(p);
public override bool HitTestTransformed(Point p)
{
return GlyphRun.Item.Bounds.ContainsExclusive(p);
}
public override void Dispose()
{

Loading…
Cancel
Save