Fix text autoscroll issue 41/289541/1
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 9 Mar 2023 09:19:42 +0000 (18:19 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 9 Mar 2023 09:19:42 +0000 (18:19 +0900)
This patch fixes the side effect of the previous condition and
prevents useless meassge in multiline case.

Change-Id: I7314903b8f0395578954d49459aa134180580c3b
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp

index 14d2de7..fad19cf 100644 (file)
@@ -1195,7 +1195,7 @@ void TextLabel::ScrollingFinished()
   // Pure Virtual from TextScroller Interface
   DALI_LOG_INFO(gLogFilter, Debug::General, "TextLabel::ScrollingFinished\n");
 
-  if(mController->IsAutoScrollEnabled() || mLastAutoScrollEnabled)
+  if(mController->IsAutoScrollEnabled() || !mController->IsMultiLineEnabled())
   {
     mController->SetAutoScrollEnabled(false);
     RequestTextRelayout();