From: Hosang Kim Date: Wed, 8 Jan 2025 10:34:49 +0000 (+0900) Subject: [Tizen] Set TextLabel's Accessibility Attribute when TextLabel is scrolling. X-Git-Tag: accepted/tizen/7.0/unified/20250123.020336~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d99cd8b065cea8cad96de42a4007328c0c584fc;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Set TextLabel's Accessibility Attribute when TextLabel is scrolling. Change-Id: Id5ce0a0fa36998c34d70b2be2cf9e584ade66374 --- diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp index 81706c6058..7884e7b76e 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -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)