浏览代码

fix editor drag issue

/uiwidgets_1.0
xingweizhu 4 年前
当前提交
c27052f6
共有 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,

正在加载...
取消
保存