【ScrollCycleView】修改2

dev_chengFeng
JieLing 2020-12-30 19:51:14 +08:00 committed by zhangqiang
parent cf0e819d73
commit 87f5e271e3
1 changed files with 6 additions and 1 deletions

View File

@ -381,6 +381,7 @@ function this:SetShow(showIndex)
self.isCanDrag = false
for i=1, self.itemCount do
-- local isNew = false
for j=1, self.fixedCount do
item = self.cellItemList[j][i]
index = j+(i-1)*self.fixedCount
@ -400,6 +401,8 @@ function this:SetShow(showIndex)
item.go = go
item.tran = tran
-- coroutine.wait(0.01)
-- isNew = true
end
if item.go then
@ -412,8 +415,10 @@ function this:SetShow(showIndex)
self.goItemList[index] = item.go
end
SetUpdate(self, dataIndex, item)
coroutine.wait(0.03)
end
-- if not isNew then
coroutine.wait(0.01)
-- end
end
-- 加载完成可以拖动了
self.isCanDrag = true