Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit e270f20

Browse files
committed
Fix scroll pool inserting off-by-one
1 parent 084aee6 commit e270f20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ExplorerCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace UnityExplorer
1919
public static class ExplorerCore
2020
{
2121
public const string NAME = "UnityExplorer";
22-
public const string VERSION = "4.0.2";
22+
public const string VERSION = "4.0.3";
2323
public const string AUTHOR = "Sinai";
2424
public const string GUID = "com.sinai.unityexplorer";
2525

src/UI/Widgets/ScrollPool/ScrollPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private bool CheckExtendCellPool()
298298
if (CellPool.Count > 1)
299299
{
300300
int index = CellPool.Count - 1 - (topPoolIndex % (CellPool.Count - 1));
301-
cell.Rect.SetSiblingIndex(index);
301+
cell.Rect.SetSiblingIndex(index + 1);
302302

303303
if (bottomPoolIndex == index - 1)
304304
bottomPoolIndex++;

0 commit comments

Comments
 (0)