浏览代码

[1.5.4] Fix some issues.

/main
Yuncong Zhang 5 年前
当前提交
2ac6e8ad
共有 4 个文件被更改,包括 4 次插入6 次删除
  1. 2
      Runtime/gestures/binding.cs
  2. 2
      Runtime/painting/continuous_rectangle_border.cs
  3. 4
      Runtime/painting/text_painter.cs
  4. 2
      Runtime/rendering/editable.cs

2
Runtime/gestures/binding.cs


}
HitTestResult hitTestResult = null;
if (evt is PointerDownEvent || evt is PointerSignalResolver) {
if (evt is PointerDownEvent || evt is PointerSignalEvent) {
D.assert(!this._hitTests.ContainsKey(evt.pointer));
hitTestResult = new HitTestResult();
this.hitTest(hitTestResult, evt.position);

2
Runtime/painting/continuous_rectangle_border.cs


}
public override ShapeBorder lerpFrom(ShapeBorder a, float t) {
D.assert(t != null);
if (a is ContinuousRectangleBorder) {
return new ContinuousRectangleBorder(
side: BorderSide.lerp((a as ContinuousRectangleBorder).side, this.side, t),

}
public override ShapeBorder lerpTo(ShapeBorder b, float t) {
D.assert(t != null);
if (b is ContinuousRectangleBorder) {
return new ContinuousRectangleBorder(
side: BorderSide.lerp(this.side, (b as ContinuousRectangleBorder).side, t),

4
Runtime/painting/text_painter.cs


return this._caretMetrics.offset;
}
public float getFullHeightForCaret(TextPosition position, Rect caretPrototype) {
public float? getFullHeightForCaret(TextPosition position, Rect caretPrototype) {
return this._caretMetrics.fullHeight ?? 0;
return this._caretMetrics.fullHeight;
}
_CaretMetrics _caretMetrics;

2
Runtime/rendering/editable.cs


caretRect.left,
caretRect.top - _kCaretHeightOffset,
caretRect.width,
this._textPainter.getFullHeightForCaret(textPosition, this._caretPrototype)
this._textPainter.getFullHeightForCaret(textPosition, this._caretPrototype).Value
);
}
#endif

正在加载...
取消
保存