This commit is contained in:
2020-08-03 23:05:29 +08:00
parent f3ecc018ff
commit 9e8c6f080f
64 changed files with 325 additions and 261 deletions

View File

@@ -470,7 +470,7 @@ namespace Coolape
int tmpIndex = 0;
// void LateUpdate ()
public void Update ()
public void _Update ()
{
if (!isFinishInit || itemList.Count < 3) {
return;
@@ -584,7 +584,8 @@ namespace Coolape
protected virtual void OnMove(UIPanel panel)
{
if (scrollView == null) return;
bool restrictWithinPanel = false;
_Update();
bool restrictWithinPanel = false;
if (list == null || list.Count == 0)
{
restrictWithinPanel = true;

View File

@@ -609,7 +609,7 @@ namespace Coolape
Bounds _bound;
Vector3 _offset;
// void LateUpdate ()
void Update ()
void _Update ()
{
if (itemList.Count < 3) {
return;
@@ -708,6 +708,7 @@ namespace Coolape
protected virtual void OnMove(UIPanel panel)
{
if (scrollView == null) return;
_Update();
bool restrictWithinPanel = false;
if (list == null || list.Count == 0)
{