【ScrollCycleView】修改2
parent
cf0e819d73
commit
87f5e271e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue