From cc4c6e2a02b0e6e408fda3e6a7e9665d46a45f54 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Fri, 28 May 2021 12:22:56 +0900 Subject: [PATCH 1/1] [NUI] Fix ScrollableBase animation issue https://github.sec.samsung.net/dotnet/NUIBackend/issues/56 - Stop scroll animation when ScrollTo() is called during scrolling - Stop scroll animation when changing ScrollDirection Signed-off-by: huiyu.eun --- src/Tizen.NUI.Components/Controls/ScrollableBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs index a0796c5..93381a7 100755 --- a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs +++ b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs @@ -260,6 +260,9 @@ namespace Tizen.NUI.Components { if (value != mScrollingDirection) { + //Reset scroll position and stop scroll animation + ScrollTo(0, false); + mScrollingDirection = value; mPanGestureDetector.ClearAngles(); mPanGestureDetector.AddDirection(value == Direction.Horizontal ? @@ -987,6 +990,7 @@ namespace Tizen.NUI.Components } else { + StopScroll(); finalTargetPosition = BoundScrollPosition(childTargetPosition); // Set position of scrolling child without an animation -- 2.7.4