|
@@ -289,11 +289,11 @@ namespace GFGGame
|
|
}
|
|
}
|
|
if (isView)
|
|
if (isView)
|
|
{
|
|
{
|
|
- _ui.m_listChapter.ScrollToView(currentChapterIndex -1, false, true);
|
|
|
|
|
|
+ _ui.m_listChapter.ScrollToView(Mathf.Max(0, currentChapterIndex -1), false, true);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- _ui.m_listChapter.ScrollToView(chapterIndex - 1, false, true);
|
|
|
|
|
|
+ _ui.m_listChapter.ScrollToView(Mathf.Max(0,chapterIndex - 1), false, true);
|
|
}
|
|
}
|
|
|
|
|
|
int childrenCount = _ui.m_listChapter.numChildren - 1;
|
|
int childrenCount = _ui.m_listChapter.numChildren - 1;
|