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

Commit

Permalink
Fix scroll pool inserting off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
sinai-dev committed May 20, 2021
1 parent 084aee6 commit e270f20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ExplorerCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace UnityExplorer
public static class ExplorerCore
{
public const string NAME = "UnityExplorer";
public const string VERSION = "4.0.2";
public const string VERSION = "4.0.3";
public const string AUTHOR = "Sinai";
public const string GUID = "com.sinai.unityexplorer";

Expand Down
2 changes: 1 addition & 1 deletion src/UI/Widgets/ScrollPool/ScrollPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private bool CheckExtendCellPool()
if (CellPool.Count > 1)
{
int index = CellPool.Count - 1 - (topPoolIndex % (CellPool.Count - 1));
cell.Rect.SetSiblingIndex(index);
cell.Rect.SetSiblingIndex(index + 1);

if (bottomPoolIndex == index - 1)
bottomPoolIndex++;
Expand Down

0 comments on commit e270f20

Please sign in to comment.