Skip to content

Commit

Permalink
comment out ForceUpdateCanvases
Browse files Browse the repository at this point in the history
  • Loading branch information
qiankanglai committed Oct 11, 2016
1 parent ced6a11 commit b809001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/LoopScrollRect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ public void RefillCells(int startIdx = 0)
itemTypeStart = reverseDirection ? totalCount - startIdx : startIdx;
itemTypeEnd = itemTypeStart;

Canvas.ForceUpdateCanvases();
// Don't `Canvas.ForceUpdateCanvases();` here, or it will new/delete cells to change itemTypeStart/End

// recycle items if we can
for (int i = 0; i < content.childCount; i++)
{
Expand Down

0 comments on commit b809001

Please sign in to comment.