浏览代码

Refine code

/main
shiyun wen 3 年前
当前提交
d819ee3a
共有 1 个文件被更改,包括 2 次插入13 次删除
  1. 15
      com.unity.uiwidgets/Runtime/widgets/list_wheel_scroll_view.cs

15
com.unity.uiwidgets/Runtime/widgets/list_wheel_scroll_view.cs


}
public int trueIndexOf(int index) {
var result = index;
if (index < 0) {
if (index % children.Count == 0) {
result = 0;
}
else {
result = index % children.Count + children.Count;
}
}
else {
result = index % children.Count;
}
var result = index % children.Count;
if (index < 0) {result = result + children.Count; }
return result;
}

正在加载...
取消
保存