In case of immediate stop, ScrollingFinished is called directly..
without using the AutoScrollAnimationFinished callback due to timing issues.
Change-Id: I72b12599c2a288918b67da0f29f180f0c94ccf3d
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
{
case TextLabel::AutoScrollStopMode::IMMEDIATE:
{
- mIsStop = true;
+ mIsStop = false;
mScrollAnimation.Stop();
+ mScrollerInterface.ScrollingFinished();
break;
}
case TextLabel::AutoScrollStopMode::FINISH_LOOP:
{
DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextScroller::AutoScrollAnimationFinished\n");
mIsStop = false;
- mScrollerInterface.ScrollingFinished();
+ if(mStopMode == TextLabel::AutoScrollStopMode::FINISH_LOOP)
+ {
+ mScrollerInterface.ScrollingFinished();
+ }
}
void TextScroller::StartScrolling(Actor scrollingTextActor, float scrollAmount, float scrollDuration, int loopCount)