浏览代码

Merge pull request #165 from Unity-Technologies/issue_1.0/editor_window_color_issue

fix editor drag issue
/uiwidgets_1.0
GitHub 4 年前
当前提交
1fb3b0b3
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      com.unity.uiwidgets/Runtime/editor/editor_window.cs

5
com.unity.uiwidgets/Runtime/editor/editor_window.cs


physicalY: evt.mousePosition.y * this._devicePixelRatio
);
}
else if (evt.type == EventType.MouseUp || evt.rawType == EventType.MouseUp ||
evt.type == EventType.DragExited || evt.type == EventType.MouseLeaveWindow) {
else if (evt.type == EventType.MouseUp || evt.rawType == EventType.MouseUp || evt.type == EventType.MouseLeaveWindow) {
pointerData = new PointerData(
timeStamp: Timer.timespanSinceStartup,
change: PointerChange.up,

physicalY: evt.mousePosition.y * this._devicePixelRatio
);
}
else if (evt.type == EventType.DragPerform) {
else if (evt.type == EventType.DragPerform || evt.type == EventType.DragExited) {
pointerData = new PointerData(
timeStamp: Timer.timespanSinceStartup,
change: PointerChange.dragFromEditorRelease,

正在加载...
取消
保存