浏览代码

material fixes (8)

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
abf5d5b2
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 3
      com.unity.uiwidgets/Runtime/gestures/multidrag.cs
  2. 8
      com.unity.uiwidgets/Runtime/widgets/framework.cs

3
com.unity.uiwidgets/Runtime/gestures/multidrag.cs


using System;
using System.Collections.Generic;
using System.Linq;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.ui;

public override void dispose() {
foreach (var key in _pointers.Keys) {
foreach (var key in _pointers.Keys.ToList()) {
_removeState(key);
}
D.assert(_pointers.isEmpty);

8
com.unity.uiwidgets/Runtime/widgets/framework.cs


hasSameSuperclass = oldElementClass == newWidgetClass;
return true;
});
if (hasSameSuperclass && child.widget == newWidget) {
if (child.slot != newSlot) {
if (hasSameSuperclass && Equals(child.widget,newWidget)) {
if (!Equals(child.slot, newSlot)) {
updateSlotForChild(child, newSlot);
}

if (child.slot != newSlot) {
if (!Equals(child.slot, newSlot)) {
D.assert(child.widget == newWidget);
D.assert(Equals(child.widget, newWidget));
D.assert(() => {
child.owner._debugElementWasRebuilt(child);
return true;

正在加载...
取消
保存