【ScrollCycleView】修改2
parent
cf0e819d73
commit
87f5e271e3
|
@ -381,6 +381,7 @@ function this:SetShow(showIndex)
|
||||||
self.isCanDrag = false
|
self.isCanDrag = false
|
||||||
|
|
||||||
for i=1, self.itemCount do
|
for i=1, self.itemCount do
|
||||||
|
-- local isNew = false
|
||||||
for j=1, self.fixedCount do
|
for j=1, self.fixedCount do
|
||||||
item = self.cellItemList[j][i]
|
item = self.cellItemList[j][i]
|
||||||
index = j+(i-1)*self.fixedCount
|
index = j+(i-1)*self.fixedCount
|
||||||
|
@ -400,6 +401,8 @@ function this:SetShow(showIndex)
|
||||||
item.go = go
|
item.go = go
|
||||||
item.tran = tran
|
item.tran = tran
|
||||||
|
|
||||||
|
-- coroutine.wait(0.01)
|
||||||
|
-- isNew = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if item.go then
|
if item.go then
|
||||||
|
@ -412,8 +415,10 @@ function this:SetShow(showIndex)
|
||||||
self.goItemList[index] = item.go
|
self.goItemList[index] = item.go
|
||||||
end
|
end
|
||||||
SetUpdate(self, dataIndex, item)
|
SetUpdate(self, dataIndex, item)
|
||||||
coroutine.wait(0.03)
|
|
||||||
end
|
end
|
||||||
|
-- if not isNew then
|
||||||
|
coroutine.wait(0.01)
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
-- 加载完成可以拖动了
|
-- 加载完成可以拖动了
|
||||||
self.isCanDrag = true
|
self.isCanDrag = true
|
||||||
|
|
Loading…
Reference in New Issue