Set viewInfo when allocating tweens

This commit is contained in:
Don Honerbrink 2015-08-06 09:18:04 -05:00
parent c20ac31fea
commit 3fc64ed01d

View File

@ -243,6 +243,10 @@ void ScrollingList::click(double nextScrollTime)
deallocateTexture(componentIndex_);
allocateTexture(componentIndex_, i);
Component *c = components_.at(componentIndex_);
ViewInfo *v = scrollPoints_->at(0);
resetTweens(c, tweenPoints_->at(componentIndex_), v, v, 0);
}
else if(currentScrollDirection_ == ScrollDirectionForward)
{
@ -253,6 +257,10 @@ void ScrollingList::click(double nextScrollTime)
deallocateTexture(componentIndex_);
allocateTexture(componentIndex_, i);
Component *c = components_.at(componentIndex_);
ViewInfo *v = scrollPoints_->back();
resetTweens(c, tweenPoints_->at(componentIndex_), v, v, 0);
componentIndex_ = loopIncrement(componentIndex_, 1, components_.size());
}
}