Browse Source
Merge pull request #11009 from Gillibald/fixes/glyphRunHitTest
Fixes GlyphRunNode hit testing
pull/11020/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs
|
|
@ -53,7 +53,10 @@ namespace Avalonia.Rendering.SceneGraph |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
/// <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() |
|
|
public override void Dispose() |
|
|
{ |
|
|
{ |
|
|
|