Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 938569a

Browse files
committed
refine code more
1 parent 2c86b70 commit 938569a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Runtime/gestures/hover.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
21
using Unity.UIWidgets.foundation;
3-
using UnityEngine;
42

53
namespace Unity.UIWidgets.gestures {
64

@@ -18,5 +16,11 @@ public HoverRecognizer(object debugOwner = null) {
1816
public PointerHoverEnterCallback OnPointerEnter;
1917

2018
public PointerHoverLeaveCallback OnPointerLeave;
19+
20+
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
21+
base.debugFillProperties(properties);
22+
properties.add(new DiagnosticsProperty<object>("debugOwner", this.debugOwner,
23+
defaultValue: Diagnostics.kNullDefaultValue));
24+
}
2125
}
2226
}

Runtime/painting/text_span.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public RenderComparison compareTo(TextSpan other) {
170170
? RenderComparison.identical
171171
: RenderComparison.metadata;
172172

173-
if (!Equals(this.recognizer, other.recognizer)) {
173+
if (!Equals(this.hoverRecognizer, other.hoverRecognizer)) {
174174
result = RenderComparison.function > result ? RenderComparison.function : result;
175175
}
176176

0 commit comments

Comments
 (0)