mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
Fix scroll pool inserting off-by-one
This commit is contained in:
parent
084aee617c
commit
e270f205a1
@ -19,7 +19,7 @@ namespace UnityExplorer
|
|||||||
public static class ExplorerCore
|
public static class ExplorerCore
|
||||||
{
|
{
|
||||||
public const string NAME = "UnityExplorer";
|
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 AUTHOR = "Sinai";
|
||||||
public const string GUID = "com.sinai.unityexplorer";
|
public const string GUID = "com.sinai.unityexplorer";
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
if (CellPool.Count > 1)
|
if (CellPool.Count > 1)
|
||||||
{
|
{
|
||||||
int index = CellPool.Count - 1 - (topPoolIndex % (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)
|
if (bottomPoolIndex == index - 1)
|
||||||
bottomPoolIndex++;
|
bottomPoolIndex++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user