[Tizen] Set TextLabel's Accessibility Attribute when TextLabel is scrolling. 33/317833/3
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 8 Jan 2025 10:34:49 +0000 (19:34 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Wed, 8 Jan 2025 11:35:14 +0000 (20:35 +0900)
Change-Id: Id5ce0a0fa36998c34d70b2be2cf9e584ade66374

dali-toolkit/internal/controls/text-controls/text-label-impl.cpp

index 81706c6058547b66428fbe8f065a47121318e81a..7884e7b76ebc3cd91ecc343eb8044f6d0aa0e64a 100644 (file)
@@ -1231,6 +1231,8 @@ void TextLabel::SetUpAutoScrolling()
   mTextScroller->SetParameters(Self(), renderer, textureSet, controlSize, verifiedSize, wrapGap, direction, mController->GetHorizontalAlignment(), mController->GetVerticalAlignment());
   mController->SetTextElideEnabled(actualellipsis);
   mController->SetAutoScrollMaxTextureExceeded(false);
+
+  DevelControl::AppendAccessibilityAttribute(Toolkit::Control::DownCast(Self()), "isScrolling", "true");
 }
 
 void TextLabel::ScrollingFinished()
@@ -1239,6 +1241,8 @@ void TextLabel::ScrollingFinished()
   DALI_LOG_INFO(gLogFilter, Debug::General, "TextLabel::ScrollingFinished\n");
   mController->SetAutoScrollEnabled(false);
   RequestTextRelayout();
+
+  DevelControl::AppendAccessibilityAttribute(Toolkit::Control::DownCast(Self()), "isScrolling", "false");
 }
 
 void TextLabel::OnLayoutDirectionChanged(Actor actor, LayoutDirection::Type type)