mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-27 00:58:51 +01:00
Set viewInfo when allocating tweens
This commit is contained in:
parent
c20ac31fea
commit
3fc64ed01d
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user