浏览代码

refine code more

/main
xingwei.zhu 6 年前
当前提交
82ee8ce3
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 8
      Runtime/gestures/hover.cs
  2. 2
      Runtime/painting/text_span.cs

8
Runtime/gestures/hover.cs


using System;
using UnityEngine;
namespace Unity.UIWidgets.gestures {

public PointerHoverEnterCallback OnPointerEnter;
public PointerHoverLeaveCallback OnPointerLeave;
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<object>("debugOwner", this.debugOwner,
defaultValue: Diagnostics.kNullDefaultValue));
}
}
}

2
Runtime/painting/text_span.cs


? RenderComparison.identical
: RenderComparison.metadata;
if (!Equals(this.recognizer, other.recognizer)) {
if (!Equals(this.hoverRecognizer, other.hoverRecognizer)) {
result = RenderComparison.function > result ? RenderComparison.function : result;
}

正在加载...
取消
保存