浏览代码

fix after comments

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
83e919e6
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1
      com.unity.uiwidgets/Editor/UIWidgetsEditorPanel.cs
  2. 2
      com.unity.uiwidgets/Runtime/rendering/list_wheel_viewport.cs

1
com.unity.uiwidgets/Editor/UIWidgetsEditorPanel.cs


}
else if (evt.type == EventType.ScrollWheel && evt.delta.magnitude != 0) {
var delta = evt.delta;
delta.x = 0f;
delta.y /= 3f;
var pos = _getPointerPosition(evt.mousePosition);
_wrapper.OnMouseScroll(delta, pos);

2
com.unity.uiwidgets/Runtime/rendering/list_wheel_viewport.cs


var deltaY = radius * Mathf.Sin(angle);
Matrix4 transform = MatrixUtils.createCylindricalProjectionTransform(
radius: size.height * _diameterRatio / 2.0F,
radius: size.height * _diameterRatio / 2.0f,
angle: angle,
perspective: _perspective
);

正在加载...
取消
保存