Skip to content

Commit 80abab2

Browse files
author
ytom
committed
fix previous commit
1 parent e170085 commit 80abab2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/Scripts/UI/GList.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -943,11 +943,11 @@ public void ScrollToView(int index, bool ani)
943943
/// <param name="setFirst">If true, scroll to make the target on the top/left; If false, scroll to make the target any position in view.</param>
944944
public void ScrollToView(int index, bool ani, bool setFirst)
945945
{
946-
if (_numItems == 0)
947-
return;
948-
949946
if (_virtual)
950947
{
948+
if (_numItems == 0)
949+
return;
950+
951951
CheckVirtualList();
952952

953953
if (index >= _virtualItems.Count)

0 commit comments

Comments
 (0)