浏览代码

scroller: support editor (scroll direction in Event is reverted, very strange, just fix it by now)

/main
xingwei.zhu 6 年前
当前提交
43bbcbf6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/editor/editor_window.cs

4
Runtime/editor/editor_window.cs


device: evt.button,
physicalX: evt.mousePosition.x * this._devicePixelRatio,
physicalY: evt.mousePosition.y * this._devicePixelRatio,
scrollX: evt.delta.x,
scrollY: evt.delta.y
scrollX: -evt.delta.x,
scrollY: -evt.delta.y
);
}

正在加载...
取消
保存